Versions Compared

Key

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

...

Code Block
languagephp
titleExample Observer
<?php

/**
 * Class TNW_Salesforce_Model_Observer
 */
class TNW_Salesforce_Model_Observer
{
 
    public function orderSyncAfterFinal(Varien_Event_Observer $observer) {
		/** 
		 * Array of Order Numbers
		 * @var array $_all 
		 * 
		 * Example:
		 * array (size=1)
		 *   183 => string '100000202' (length=9) // 183 - Magento order ID
		 */
		$_all = $observer->getData('all');

		/** 
		 * Array of Order Ids
		 * @var array $_failed 
		 * 
		 * Example:
		 * array (size=0)
		 *   empty
		 */
		$_failed = $observer->getData('failed');

		// Your custom code
    }
 
}

...