I have applied this event in my config.xml but I dont know how to get data from this observer. I googled but no article found.
config.xml--
<sales_quote_product_add_after>
<observers>
<po>
<type>singleton</type>
<class>po/observer</class>
<method>updateQuote</method>
</po>
</observers>
</sales_quote_product_add_after>
Observer file-
public function updateQuote($observer)
{
Mage::log("testing");
$quoteItem = $observer->getEvent()->getItems();
$quote = $quoteItem->getQuote();
$id = $quote->getId();
Mage::log($id."hello testing");
}
Getting only "testing" in log file and not getting "hello testing". How can I get info about product added into quote and info of the quote.
Mage::log
syntax is incorrect probably