want to show Attribute value above Add to cart button. Kindly Help Magento 2.3.2 Kindly help

<?php /* @escapeNotVerified */ echo $_product->getResource()->getAttribute('newprice')->getFrontend()->getValue($_product); ?>

THis Code not working in app/design/frontend/Zemez/theme105/Magento_Catalog/templates/product/view/addtocart.phtml

  • What is the attribute type? Can you do var_dump the see what is the output? – amitshree Oct 9 at 13:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.