0

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?)

and

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?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.