skip to Main Content

Get magento 2 custom attribute value

I am able to display attribute values using the code below BUT if the attribute is empty it just prints out the word "No" <?php echo $_product->getResource()->getAttribute('c_address')->getFrontend()->getValue($_product); ?>

VIEW QUESTION
Back To Top
Search