Note: brand is custom attribute code

<?php if ($_product->getBrand()):  ?>
            <span class="custom-brand"><?php echo $_product->getResource()->getAttribute('brand')->getFrontend()->getValue($_product); ?></span>
            <?php endif; ?>

Categories: Magento

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *