What Is The Structure Of Event Observers, And How Are Properties Accessed Therein?

Q. What is the structure of event observers, and how are properties accessed therein?

for checkout/cart after adding product,
Mage::dispatchEvent(’checkout_cart_product_add_after’, array(’quote_item’=>$result, ‘product’=>$product));
to call,
$observer->getEvent()->getQuoteItem() and $observer->getEvent()->getProduct()


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Zeen is a next generation WordPress theme. It’s powerful, beautifully designed and comes with everything you need to engage your visitors and increase conversions.

Read More
What Is The Difference Between Payment Method And Payment Classes?