How can programmatically added bundle products be shown in Magento’s front-end?

  • By re-indexing
  • By using the following codes: Mage::register(‘product’, $product); Mage::register(‘current_product’, $product); $product->setCanSaveConfigurableAttributes(false); $product->setCanSaveCustomOptions(true);
  • By using the following: 1. setBundleOptionsData() 2. setBundleSelectionsData() 3. setCanSaveBundleSelections(true)
  • It is not possible to show programmatically added bundle products in the front-end.

stackoverflow.com/a/4415800