<global> <events> <sales_order_place_after> <observers> <sales_order_place_after_observer_change_status> <type>singleton</type> <class>mysales/observer</class> <method>change_status</method> </sales_order_place_after_observer_change_status> </observers> </sales_order_place_after> </events>
<?php class Bysoft_Mysales_Model_Observer { public function change_status($observer) { $order = $observer->getEvent()->getOrder(); $ordered_items = $order->getAllItems(); $attr_ids = array(); $attr_ids[] = $this->attributeValueExists('checkout_process','Custom products'); $attr_ids[] = $this->attributeValueExists('checkout_process','Global sourcing commodities/pricing'); foreach($ordered_items as $item){ $product = Mage::getModel('catalog/product')->loadByAttribute('sku', $item->getSku()); if (in_array($product->getData('checkout_process') , $attr_ids)) { $order->setData('state', 'new'); $order->setStatus('new'); $history = $order->addStatusHistoryComment('New Order For Custom and Global Products.', false); $history->setIsCustomerNotified(false); $order->save(); return; } } }
相关推荐
Change OEM Logo for Aptio AMI BIOS 开机LOGO修改工具 软件环境:支持WIN7 WIN8 等 中文汉化版 可修改的格式:.fd .rom .fv .cap 使用方法:选择BIOS文件,选择LOGO文件,替换后保存新的BIOS文件,刷写入主板...
项目中遇到一个需求需要修改SO的抬头增强字段,通常增强字段只能通过BAPI的EXTENSIONIN和EXTENSIONINX参数传递。
appropriate for) change detection. We describe four different methods for selecting thresholds that work on very different principles. Either the noise or the signal is modelled, and the model covers ...
Exploiting Reflection Change for Automatic Reflection Removal.去除像反光
Order Change Not Yet Acknole.xls
An Empirical Review of Deep Learning Frameworks for Change Detection Model Design, Experimental Frameworks, Challenges and Research Needs.zip
This document supersedes Deciding When to Submit a 510(k) for a Change to an Existing Device, dated January 10, 1997. For questions about this document regarding CDRH-regulated devices, contact the ...
Springer Book_Methods for Environmental and Climate Change Analysis.
Change for Comp Adv
E.F. Lambin和H.J. Geist主编的《Land-Use and Land-Cover Change : Local Processes and Global Impacts》, Springer, 2006。第四章
In PDF file Question on solving 1st order ... Simply copy the matlab codes and paste in Command Window of Matlab and Run as mentioned.You can change the values as required for your equations in problems.
Managing Software Debt: Building for Inevitable Change (Agile Software Development Series) Chris Sterling (Author) <Product Details> Hardcover: 288 pages Publisher: Addison-Wesley Professional; 1 ...
510(k) for a Software Change to an Existing Device ______________________________________________________________________________ Guidance for Industry and Food and Drug Administration Staff ...
In this model, inference for the regression coefficients reflects prior uncertainty about the location of the change point. Inferences about regression coefficients, unconditional on the change point...
ORDER CHANGE NOT YET ACKNOLE(表格模板、XLS格式).XLS
AndStatus AndStatus is an Open Source multiple accounts client for multiple Social networks, including ...See the Change Log for descriptions of all the features of AndStatus and for the links to their
Clarion Developers have the choice of using our generic toolkits, or our Clarion specific SDKs which offer Clarion specific Help and Examples, along with comprehensive classes and templates for all ...
Place first item on new line now works for ORDER BY in windowed functions (Forum post) 7.3.0.632 - 24th October Format action added for applying column alias style (UserVoice) Option added to change ...
Drupal is a powerful, free system that anyone can use in order to create their own website. With such a powerful tool at your fingertips there is no longer any need to pay professionals to design a ...
USB4 1.0 ECN - Change Starting Phase after Sleep.pdf