0

我正在为 magento 开发一种自定义付款方式。如果在“下订单阶段”出现错误,我想将用户重定向到“付款信息”(即用户选择付款方式的结帐过程的一部分)。

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

4

1 回答 1

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.
于 2013-06-18T12:49:39.737 回答