0

How can I get all simple products which are assigned to a certain grouped product?

1 Answer 1

0

I figured it out. Found the answer in this file:

vendor\magento\module-grouped-product\Block\Product\View\Type\Grouped.php

public function getAssociatedProducts()
{
    return $this->getProduct()->getTypeInstance()->getAssociatedProducts($this->getProduct());
}

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.