...
Code Block | ||||
---|---|---|---|---|
| ||||
Mage::dispatchEvent('tnw_salesforce_order_comments_save_beforeafter', array('oid' => $_oid, 'note' => $_note, 'type' => 'Order')); |
...
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0"?> <config> <global> <events> <tnw_salesforce_order_comments_save_before>after> <observers> <tnw_salesforce_order_comments_save_before>after> <class>tnw_salesforce/observer</class> <method>orderCommentsSaveBefore<<method>orderCommentsSaveAfter</method> </tnw_salesforce_order_comments_save_before>after> </observers> </tnw_salesforce_order_comments_save_before>after> </events> </global> </config> |
Code Block | ||||
---|---|---|---|---|
| ||||
<?php /** * Class TNW_Salesforce_Model_Observer */ class TNW_Salesforce_Model_Observer { public function orderCommentsSaveBeforeorderCommentsSaveAfter(Varien_Event_Observer $observer) { /** * Magento Order id * @var int $_oid */ $_oid = $observer->getData('oid'); /** * Magento Note oject * @var mixedMage_Sales_Model_Order_Status_History $_note */ $_note = $observer->getData('note'); /** * Order * @var string $_type */ $_type = $observer->getData('type'); // Your custom code } } |
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...