I am changing the table for a grouped product. I have overridden the grouped.phtml file to make changes.

But I need to override the function:

getAssociatedProducts($product) // Grouped.php

Because some attributes are not available. Only a few are added by

->addAttrubuteToSelect(...) // Grouped.php

I need more attributes to be visible in the table.

Files can be found in:

Magento\GroupedProduct\Model\Product\Type\Grouped.php (where to override?)


module-grouped-product\view\frontend\templates\product\view\type\grouped.phtml (overridden in custom theme)

Or do I need to override a XML file to store the new attribute? Which one?


1 Answer 1


You also have have access to the getAssociatedProductsCollection($product) method, why not use that?

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.