Skip to main content

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

By Michael Cristancho

I'm a Digital Commerce and Experience evangelist who enjoys engaging in thought-provoking conversation and mutual exploration. I am a strong believer that learning never ends, and each day brings another opportunity to grow as an individual and professional.