1

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.

3

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.