In my magento store, I have a script to add product programmatically in cart using below code :
$cart = Mage::getSingleton('checkout/cart');
$cart->init();
$_product = Mage::getModel('catalog/product')->load($id);
$params = array(
'product' => $_product->getId(),
'qty' => $qty,
'options' =>'',
'form_key' => Mage::getSingleton('core/session')->getFormKey()
);
$cart->addProduct($_product, $params);
$cart->save();
For this item checkout_cart_add_product_complete
event not fired.
However the checkout_cart_add_product_complete
event is working nice while adding a product to cart from a catalog.
Is there any other event in magento which fire on programmatically add product (similar to checkout_cart_add_product_complete
)?