Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

An event is triggered to allow PowerSync product to customize 'Sales Order Status' form in Magentoafter sending order contact roles in service Salesforce.

Code Block
languagephp
titleTNW_Salesforce_Block_Sales_Order_Status_New_Form
Mage::dispatchEvent('tnw_salesforce_order_contact_roles_send_after', array('data' => $_data, 'result' => $_result));

...

Code Block
languagephp
titleExample Observer
<?php

/**
 * Class TNW_Salesforce_Model_Observer
 */
class TNW_Salesforce_Model_Observer
{
 
    public function orderContactRolesSendAfter(Varien_Event_Observer $observer) {
		/** 
		 * Array of Salesforce objects
		 * @var array $_data
		 */
		$_data = $observer->getData('data');

		/**
		 * Array of Results
		 * @var array $_result
		 */
		$_result = $observer->getData('result');

		// Your custom code
    }
 
}

...