How to get a dropdown attribute value on the category page, i set the show in listing to yes and added this attribute to product. any suggestion?

1 Answer 1


This code can help you:

$attr = $_product->getResource()->getAttribute('your_attribute_code')->getFrontend()->getValue($_product);

please let me know if any issue you have


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.

Not the answer you're looking for? Browse other questions tagged or ask your own question.