Versions Compared

Key

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

Attention! This event is deprecated

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

Code Block
languagephp
titleTNW_Salesforce_Block_Sales_Order_Status_New_Form
Mage::dispatchEvent('tnw_salesforce_opportunity_line_item_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 opportunityLineItemSendAfter(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
    }
 
}

...