2016-10-01 124 views

回答

0

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 –