An event is triggered to allow PowerSync product to customize 'Sales Order Status' form in Magento. when you save Opportunity ID on the order page in the admin area.
Code Block | ||||
---|---|---|---|---|
| ||||
Mage::dispatchEvent('tnw_salesforce_order_save_form', array('order' => $_order)); |
...
Code Block | ||||
---|---|---|---|---|
| ||||
<?php /** * Class TNW_Salesforce_Model_Observer */ class TNW_Salesforce_Model_Observer { public function orderSaveForm(Varien_Event_Observer $observer) { /** * Magento order object * @var Varien_Data_Form $_form */ $_order = $observer->getOrder>getData('order'); // Your custom code } } |
...