fbpx

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()

Newsletter

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
How to pass variables from layout to block?