Add attributes dynamically
-
Hello,
I would like to show the product’s attributes (“Size: M”) under the product name.
You recommend to add this code to the custom template:
<?php if(!empty($item['product'])) $this->product_attribute('Attribute name', $item['product']); ?>
But if I get it right, I’ll first have to replace ‘Attribute name’ by the attribute key like “pa_size”. But I want it to show all available attributes automatically without specifying specific ones.Is there a way to achieve this?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Add attributes dynamically’ is closed to new replies.