Posted on

How to get quote_id in “checkout_cart_product_add_after” event

I have added checkout_cart_product_add_after event in my custom module like :

<checkout_cart_product_add_after>
<observers>
<custom_detect_product_changes>
<type>singleton</type>
<class>custom/observer</class>
<method>customFunction</method>
</custom_detect_product_changes>
</observers>
</checkout_cart_product_add_after>

And in Observer.php I want to get quote_id like :


public function customFunction(Varien_Event_Observer $observer)
{
// here I want to get quote_id

}

How to get quote_id in customFunction?

Leave a Reply

Your email address will not be published. Required fields are marked *