Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach ($it = new Nette\Iterators\CachingIterator($product->attributes) as $attributeValue) {
- if ($it->first || $it->nextValue->attribute->name !== $attributeValue->attribute->name) {
- echo $attributeValue->attribute->name, ': ';
- }
- echo $attributeValue->value, ', ';
- }
Advertisement
Add Comment
Please, Sign In to add comment