cancel
Showing results for 
Search instead for 
Did you mean: 

Get bundle product children

SOLVED

Get bundle product children

I'm currently searching for a way to list bundle product children on the product view page.

 

Here is what I've done so far:

I've created the bundle product and the underlaying simple products. The bundle product has a single option named "Products", which holds all simple products.

 

I now need to know how to get all those simple products listed under the option and show them in the form of a table on the product view page. The table should contain the product SKU and some attributes.

 

How can I do this?

 

Note: I've been seeing a lot of module developers on this forum throwing their module around whenever someone asks a question. I don't need a module to do this, I just need a simple code snippet, which will do the trick for me.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Get bundle product children

How to get a bundle product's children? https://mage2.pro/t/1228

View solution in original post

2 REPLIES 2

Re: Get bundle product children

How to get a bundle product's children? https://mage2.pro/t/1228

Re: Get bundle product children

You can get all the children items of a bundle product by Bundle product id in Magento 2 easily.

 

Check the link, Get children of bundle product Magento 2 

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial