在magento注册后自动登录客户
答
在Magento你可以使用下面的方法之一。
选项A:
- 登录到Magento管理区域
- 转到
System => Configuration => Customer Configuration
-
Create New Account Options
选项卡,设置 “无” 为 'Require Emails Confirmation
' 选项。 -
Login Options
并为'Redirect Customer to Account Dashboard after Logging in
'选项设置为“否”。 - 然后打开
\app\code\core\Mage\Customer\controllers\AccountController.php
你可以从这个改变:
$session->setBeforeAuthUrl(Mage::helper('customer')->getAccountUrl());
要这样:
$session->setBeforeAuthUrl(Mage::getBaseUrl());
选项B:
创建与“customer_login”事件观察者一起使用的自定义模块。
选项C:
使用LOGI重定向免费的社区延伸。您可以从下面一个有想法:
由于网速慢,但我的问题是不是你有ANS –