Programmatically add Bundle Products in Magento, using the SKU / ID of Simple Items

后端 未结 3 1116
说谎
说谎 2020-12-09 06:27

I have some simple catalog products in Magento, so I have their SKUs & IDs. Now I want to create a Bundled product using the array elements \"bundle_options\" & \"bu

3条回答
  •  醉梦人生
    2020-12-09 07:10

    I am not using any Web Services, for this. I have simply used the following methods meant specifically for the Bundled Products, which are:-

    1. setBundleOptionsData()
    2. setBundleSelectionsData()
    3. setCanSaveBundleSelections(true)

    For the first method, the details of the Bundle Options are provided to the method as the parameter in the form of an array. Similarly, for the second method "setBundleSelectionsData()", we are providing the details of the Bundle Selections to this method as the parameter in the form of an array.

    This is the main logic in what goes through for adding any Bundled Product in Magento. Hope this helps to any newbies!!!


    Please check this link for more details on Bundle Product creation in a proper way.

提交回复
热议问题