0

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

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, privacy policy and cookie policy

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