I want to display custom attribute brand value on custom phtml file.

I tried Below code in phtml file but not working

<?php echo $_product->getResource()->getAttribute('brand')->getFrontend()->getValue($_product);?>

Is there any solution please share it.


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.