1

I'm trying to extract 3 attributes for every associated product under a grouped product page.

I use a multistore Italian-English but if I use

 $stato_label= $_item->getResource()->getAttribute('stato')->getFrontend()->getLocalizedLabel($_item);
 $stato_value= $_item->getResource()->getAttribute('stato')->getFrontend()->getValue($_item);

Just the attributes value has been translated. The label is still is not using the translation

grouped

I have already translated the labels on the backend

How can I get the translated image?

Thanks for help

1 Answer 1

0

Found the solution. The correct way to get the label is

getResource()->getAttribute('attr')->getStoreLabel();

Your Answer

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

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