Certificated magento

Q.1.1.12) 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()

0 Bình luận

Trở về
  • 1.12) Set up a cron job
  • 1.12) Set up a cron job

    Let’s start with server setup.   As any complex system, Magento has a lot of tasks that need to be executed...