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 |
---|
language | php |
---|
title | TNW_Salesforce_Block_Sales_Order_Status_New_Form |
---|
|
Mage::dispatchEvent('tnw_salesforce_order_contact_roles_send_after', array('data' => $_data, 'result' => $_result)); |
...
Code Block |
---|
language | php |
---|
title | Example 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
}
} |
...