English 中文(简体)
Magento——在一页的检查中,航运步骤的内部长度是什么?
原标题:Magento - What is the internal url for shipping step in onepage checkout?
  • 时间:2011-03-11 20:02:43
  •  标签:
  • magento

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.

在该网页的谈话之后,。 制止Magento事件观察员进行核查的正确方式是什么?。 我已建立了一切,但我不想把他们推向车上,只是海运步骤。

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.

感谢!

问题回答

url = checkout/onepage/shipping_method

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




相关问题
Magento addFieldToFilter allow NULLs

When using the Magento collection method addFieldToFilter is it possible to allow filtering by NULL values? I want to select all the products in a collection that have a custom attribute even if no ...

Get product link from Magento API

I am new to Magento and using their API. I need to be able to get the product url from the API call. I see that I can access the url_key and url_path, but unfortunately that s not necessarily what ...

magento extension installation

I want to install a Magento extension in WAMP, but not from the Magento connect system. How can I do this? I have the module (extension) code and I already installed the sample data in the Magento ...

Link to a specific step in onepage checkout

Is it possible to redirect the browser to nth step in the onepage checkout? If so, how would one go about doing it? I m working on a payment module and have a sort of "cancel" action that i would ...

How do I filter a collection by a YesNo type attribute?

I have a ‘featured’ attribute, which has a Yes/No select-list as the admin input. I presume that the values for Yes and No are 1 and 0, as they are for every other Yes/No list. However, if I try and ...

热门标签