07-20-2023, 01:19 PM
I am using this code to display (on the frontend) all assigned attributes of a product in Magento:
<?php if ($_product->getData('metal')): ?>
<?php echo nl2br($_product->getResource()->getAttribute('metal')->getFrontend()->getValue($_product )) ?>
<?php endif; ?>
I need to separate each item with a bullet point `&#149;` and a break `<br/>`. How would I edit this code to reflect those changes?
Thanks in advance.
_Sam
<?php if ($_product->getData('metal')): ?>
<?php echo nl2br($_product->getResource()->getAttribute('metal')->getFrontend()->getValue($_product )) ?>
<?php endif; ?>
I need to separate each item with a bullet point `&#149;` and a break `<br/>`. How would I edit this code to reflect those changes?
Thanks in advance.
_Sam