我一直在研究客户在注册时选择需要注册哪个网站的模块。到目前为止,我已经做到了。 A quick reference。在成功注册时,客户将被重定向到当前网站的customer/account/
,而不管他选择哪个网站。但我需要将他重定向到他已注册的特定网站。成功注册后将客户重定向到关联网站
到目前为止,我已经试过重写Customer/AccountController
的_welcomeCustomer()
:
protected function _welcomeCustomer($customer, $isJustConformed = false) {
$webid = $customer->getWebsiteId();
$successurl = parent::_welcomeCustomer($customer, $isJustConfirmed);
if (Mage::app()->getStore()->getWebsiteId() == $webid) {
return $successurl;
} else {
return Mage::app()->getWebsite($webid)->getDefaultStore()->getBaseUrl() . 'customer/account/index';
}
}
但不是客户重定向到相关的网站也被重定向到当前网站的主页。任何帮助?它怎么能做到?或者这是怎么发生的?
我建议你[Magento](http://magento.stackexchange.com/questions/ask)StackExchange是这个更好的地方。 – Rikesh
我不行。我想一个国防部可以。否则只要删除这一个,并在那边问一个新的。 – Rikesh
@Rikesh:如果你能回答。我发布了它[有](http://magento.stackexchange.com/q/15045/4426) –