一、在magento\app\code\core\Mage\Payment\etc\config.xmlphp
找到config.xml中<checkmo>標籤中內容複製一份爲<checkmo1></checkmo1>session
<checkmo1>app
<active>1</active>code
<model>payment/method_checkmo1</model>xml
<order_status>pending</order_status>ci
<title>Check / Money order1</title>rem
<allowspecific>0</allowspecific>get
<group>offline</group>it
</checkmo1>io
二、在magento\app\code\core\Mage\Payment\etc\system.xml
找到system.xml中<checkmo1 translate="label">標籤中內容複製一份爲<checkmo1 translate="label"></checkmo1>
<checkmo1 translate="label">
........
</checkmo1>
三、在magento\app\code\core\Mage\checkout\controllers\onepagecontroller.php
successAction()方法修改{
//cheange order status
$lastOrderId = Mage::getSingleton('checkout/session')->getLastRealOrderId();
$_order = Mage::getModel ( 'sales/order' )->loadByIncrementId ( $lastOrderId);
$_order->setState(Mage_Sales_Model_Order::STATE_PROCESSING, true)->save();
}