Skip to content

Instantly share code, notes, and snippets.

@ajbonner
Last active December 16, 2015 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajbonner/5411905 to your computer and use it in GitHub Desktop.
Save ajbonner/5411905 to your computer and use it in GitHub Desktop.
Add a bundle product to the cart programatically
<?php
$options = array(
'product' => 8234,
'bundle_option'=>array(
'297'=>1233
),
'qty'=>$qty
);
$quote->addProductAdvanced($product, new Varien_Object($options), Mage_Catalog_Model_Product_Type_Abstract::PROCESS_MODE_FULL);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment