开发者

Magento - What is the internal url for shipping step in onepage checkout?

开发者 https://www.devze.com 2023-02-16 19:59 出处:网络
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 th

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'))开发者_Python百科; does not work.

Thanks!


url = checkout/onepage/shipping_method


if ($backUrl = $this->_getRefererUrl()) {
    $this->getResponse()->setRedirect($backUrl);
}
0

精彩评论

暂无评论...
验证码 换一张
取 消