I want to load bundle child products from bundle product parent id in Magento 2.

anyone know how can we achieve this?

Thanks :)


You can get the type instance in your bundle product, then get the children IDs, as below.

$typeInstance = $product->getTypeInstance();
$requiredChildrenIds = $typeInstance->getChildrenIds($product->getId(), true);
| improve this answer | |

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.