I am new to Magento.I have extended core module Mage: checkout/cart to add to cart with multiple options of product. How can I use the observer with the following event : controller_action_predispatch_checkout_cart_add
My code:
config.xml
<controller_action_predispatch_checkout_cart_add>
<observers>
<flycart_disable_shopping_cart_page>
<type>singleton</type>
<class>flycart/observer</class>
<method>cartAdd</method>
</flycart_disable_shopping_cart_page>
</observers>
</controller_action_predispatch_checkout_cart_add>
file Observer.php
<?php class Custom_Flycart_Model_Observer{
public function cartAdd(){
// CODE Here }
}?>
How to can I get multiple product in array post: This is post
I don't know how to use observers in the Magento.