Magento - 单页结账中运送步骤的内部网址是什么?
我正在使用观察者来检查客户在一页结帐期间提供的运输信息。通过观察事件 checkout_controller_onepage_save_shipping_method
,我想将客户重定向回运输步骤以重新输入他们的信息。
在此页面上进行对话后,在 Magento 中阻止事件观察者结帐的正确方法是什么?,我已设置好所有内容,但我不想将它们重定向到购物车,而只是将其重定向到运输步骤。
Mage::app()->getResponse()->setRedirect(Mage::getUrl('什么/去/这里'));
我可以让代码只是刷新页面吗? Mage::app()->getResponse()->setRedirect(Mage::getUrl('checkout/onepage'));
不起作用。
谢谢!
I am using an observer to check the shipping information provided by the customer during onepage checkout. By observing the event checkout_controller_onepage_save_shipping_method
I want to redirect the customer back to the shipping step to re-enter their information.
Following the conversation on this page, What is the correct way to stop a checkout from an event observer in Magento?, I have everything set up, but I do not want to redirect them to cart, just the shipping step.
Mage::app()->getResponse()->setRedirect(Mage::getUrl('what/goes/here'));
Can I make the code simply refresh the page?Mage::app()->getResponse()->setRedirect(Mage::getUrl('checkout/onepage'));
does not work.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
url =
结账/onepage/shipping_method
url =
checkout/onepage/shipping_method