在magento注册后自动登录客户

问题描述:

有什么方法或概念,当客户注册在前面,然后登录自动并重定向到主页。在magento注册后自动登录客户

我想通过外部(从magento)做的事情。

Magento你可以使用下面的方法之一。

选项A:

  1. 登录到Magento管理区域
  2. 转到System => Configuration => Customer Configuration
  3. Create New Account Options选项卡,设置 “无” 为 'Require Emails Confirmation' 选项。
  4. Login Options并为'Redirect Customer to Account Dashboard after Logging in'选项设置为“否”。
  5. 然后打开\app\code\core\Mage\Customer\controllers\AccountController.php

你可以从这个改变:

$session->setBeforeAuthUrl(Mage::helper('customer')->getAccountUrl()); 

要这样:

$session->setBeforeAuthUrl(Mage::getBaseUrl()); 

选项B:

创建与“customer_login”事件观察者一起使用的自定义模块。

选项C:

使用LOGI重定向免费的社区延伸。您可以从下面一个有想法:

https://www.magentocommerce.com/magento-connect/customer-redirect-to-link-page-after-login-and-create-accounts-1.html

+0

由于网速慢,但我的问题是不是你有ANS –