Which Event to be called when adding the products to order creation in magento admin? -
i have scenario want create order backend . want call api when selecting products order . want know api need call when add item order may call api ?
i appreciate .
regards surjan
sales_quote_add_item event occured when add product order admin.
follow steps.
your config.xml like.
<adminhtml> <events> <sales_quote_add_item> <observers> <unique_event_name> <class>module/observer</class> <method>productlevelchanges</method> </unique_event_name> </observers> </sales_quote_add_item> </events> </adminhtml>
observer.php
<?php class company_module_model_observer extends mage_core_model_abstract { public function productlevelchanges(varien_event_observer $observer){ $item = $observer->getquoteitem(); $productobject=mage::getmodel('catalog/product')->load($item->getproductid()); }
Comments
Post a Comment