2013-06-18 44 views
0

我正在为magento定制付款方式。如果在“下订单阶段”期间发生错误,我希望将用户重定向到“付款信息”(即用户选择付款方式的ceckout过程的一部分)。Magento:重定向到选择付款方式

有没有办法实现这一点,并输出任何可能的错误?

回答

0

那么,如果通过“下订单”您的意思是最后的过程,这意味着“保存顺序”。

我想你把这些行放在你的主要付款模式。

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. 
相关问题