0
我正在爲magento定製付款方式。如果在「下訂單階段」期間發生錯誤,我希望將用戶重定向到「付款信息」(即用戶選擇付款方式的ceckout過程的一部分)。Magento:重定向到選擇付款方式
有沒有辦法實現這一點,並輸出任何可能的錯誤?
我正在爲magento定製付款方式。如果在「下訂單階段」期間發生錯誤,我希望將用戶重定向到「付款信息」(即用戶選擇付款方式的ceckout過程的一部分)。Magento:重定向到選擇付款方式
有沒有辦法實現這一點,並輸出任何可能的錯誤?
那麼,如果通過「下訂單」您的意思是最後的過程,這意味着「保存順序」。
我想你把這些行放在你的主要付款模式。
public function getOrderPlaceRedirectUrl(){
return Mage::getUrl('yourmodule/yourcontroller/yourmethod');
}
In yourmethod, deal with exceptions (search by 'try catch - php').. and when you get one of these exceptions, redirect to your onestep page.
Unfortunelly, at this point (onestep) page, i don't know exactly how you can focus on payment method. But , just take a look at the calls in that phase that you can figure it out.