...
Code Block | ||||
---|---|---|---|---|
| ||||
<?php /** * Class TNW_Salesforce_Model_Observer */ class TNW_Salesforce_Model_Observer { public function invoiceNotesSendBefore(Varien_Event_Observer $observer) { /** * Array of Salesforce objects * @var stdClass[] $_data * * Example: * array (size=1) * 'cart_206'1 => * object(stdClass)[600] 843] * public 'AcctSeed__Product__cParentId' => null string '01t24000003TfxyAAC' (length=18) * public 'AcctSeed__Rate__cIsPrivate' => string '321.55' (length=6) *int 0 public 'AcctSeed__Billing__c' => null * public 'AcctSeed__Hours_Units__cBody' => string '1.0000Custom comment' (length=6) 14) * public 'AcctSeedERP__Sales_Order_Line__cTitle' => string '80224000001gwzQAAQCustom comment' (length=18) 14) */ $_data = $observer->getData('data'); // Your custom code } } |
...