magento/app/code/local/Idev/Dhpay/Block/Placeform.php
magento/app/code/local/Idev/Dhpay/controllers/ProcessingController.php
magento/app/design/frontend/base/default/template/dhpay/info.phtmlphp
目前一共須要修改三個文件 DHpay插件主入口ProcessingController.php加入第五十七行, 訂單號獲取訂單詳情html
$incrementid= $this->getRequest()->getParam('incrementid');
if($incrementid){
$order = Mage::getModel ( 'sales/order' )->loadByIncrementId ( $incrementid );
}app
在Placeform.php入口的_getOrder()方法中加入frontend
elseif ($this->getRequest()->getParam('incrementid')){
$incrementid= $this->getRequest()->getParam('incrementid');
$order = Mage::getModel ( 'sales/order' )->loadByIncrementId ( $incrementid );
return $order;
}else {
return null;
}this
在 template 中DHpay的info.phtml中加入相關的判斷來肯定是否須要顯示從新支付連接插件