GetLocalizedLabel not working under Grouped Products

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

Solutions

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

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

Similar questions

Default Qty For Simple Products Associated to Grouped Products Not Saving
In a grouped product, associated simple products default quantity not saving. The values are saved in database in catalog_product_link_attribute_decimal table, but not showing in admin (blank input on product save) or frontend.
Magento 2 Products with Categories not showing under Category Products
I have 10,000 SKUs that are assigned various categories. I can edit the product and see that it is in a category, however, when I go to that category, and look at the category products, nothing is showing up. I have tried clearing all the indexes and reindexing. I am at a loss. Can someone please point me in the right direction for this one? -Dan
Sorting product list New added products and matching name products should be grouped
I want to Sort product listing by new added product, and I did it by adding code It is working fine, Now I want to show products as a group those has matching name like, TOP-blue, TOP- green, TOP- red Is it possible ? any help appreciable thanks
Optimal structure of grouped products with more than 30K unique products
I have a question to community how to organize my catalog with grouped products. Following my situation: That is not to hard to organize my catalog, but problem is: Product "SA" is child product for "GA", "GB", "GD". And "SA" has unique value for every group, for example polygon, order, image attributes are differentiated for every parent group. Bu...
Grouped products's simple products exempt from shopping cart rule. How to fix?
When a simple product (SP) associated to a grouped product is added to the cart, this works differently from a typical configurable-simple product setup. The product added to the cart is actually the simple product itself (as opposed to, say, a configurable product with its associated SP's attributes), and the shopping cart price rules are not bein...
Simple Products with Custom Options in Grouped Products Magento
I hope someone can help or knows of an extension that adds the functionality I require. I have multiple simple products that each have their own custom options. I then need to add these simple products to a bundled product. Magento out of the box only allows simple products without custom options to be added.

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.