I need assistance completing a custom Magento extension that I am currently developing. Magento allows the merchant to bundle \"simple\" products, unfortunately it cannot bundle a \"bundled\" product. For example, I have a store that sells computer parts. I create each individual sellable products, which are considered as \"SIMPLE\" products. Next, I want to bundle a keyboard and a mouse together, I can easily do that with Magento by creating a new product type called \"BUNDLE PRODUCT\” and associate the products to this newly created \"BUNDLE PRODUCT\”. However if I wanted to associate a bundle product to another bundled product it isn\’t possible out-of-the-box.
So I created my own extension that would allow me to associate a bundled product to another bundle, which works perfectly in the back-end (product admin tool). However, I am having an issue having the bundled product to appear on the front-end (product details page). EDIT: Typically when you go to view the details of any product (whether it\’s simple or bundled), you see the details of the whole product (description, name, price, add to cart button, etc.). On this product detail page there is a box that will appear below the description area to display a list of all the bundled items associated with this product. This list only appears when you associate a SIMPLE product to the bundle. I was able to associate bundled products to a \"parent\" bundle product, however on the product details page—it does not list them out. It is just blank. I can see the title, the description, the add-to-cart button—however I cannot see the LIST of associated products.
Can anyone help me resolve this or point me to the right direction? I am asking for a solution to have bundled items (product type: bundled product) to appear under the bundled products.
Here is what you can do to to duplicate the error:
Add bundle under allowed selection types like so:
and comment out
in the _prepareCollection() function. (when you comment out them make sure to semi colon is moved)
and make the function \"isSalable()\" to return true for the FIRST \"IF STATEMENT\”. I did this because for some reason, bundle within a bundle cannot be sold. It will return \"OUT OF STOCK\”, so I overcame that by having that function return TRUE.
Finally on that same file, modify getSelectionsCollection() by commenting out
(when you comment out them make sure to semi colon is moved)
So now you should be able to associate a BUNDLED product to another BUNDLE product. When you view the product that contains the bundled product, it will NOT list the bundled items out. This is where I need help on. I just need some help where to start looking.
Thank you ahead of time!