2015-11-02 163 views
0

您可以幫我刪除Magento中的Myaccount功能嗎?因爲我只是想創建產品查詢網站,換句話說就是目錄網站。我可以從佈局中移除Myaccount鏈接,但如果有人知道它,仍然可以通過URL訪問。如何刪除Magento中的Myaccount功能?

僅供參考:我目前正在使用Magento 1.9.2.2v。

編輯:我想刪除用戶/搜索引擎訪問以下頁面。基本上我想禁用myaccount功能,因爲Magento能夠禁用結帳(https://magento.stackexchange.com/questions/45802/how-can-i-disable-the-magento-shopping-cart)和心願單(http://inchoo.net/magento/disabling-wishlist-functionality/)。 enter image description here

我的意圖是添加一個重定向到.htaccess文件並更新robot.txt,但我真的希望以正確的方式做到這一點。

+0

你可以發送一個鏈接或截圖爲更好的理解? –

+0

感謝您查看此問題,我添加了更多信息,請參閱上文。 –

+0

@FRSTAR我還沒有在Magento上工作,但只是問..這個擴展是否對你有幫助? http://www.magentocommerce.com/magento-connect/remove-customer-account-links.html – Suyog

回答

1

登錄到管理面板

Goto -> System -> Configuration -> Advance

In that Module Disable the "Mage_Customer" It will disable all customer access.

+0

謝謝你,它做了我想要的,但當我測試以下URL http:// www。{domain}/customer/account/forgotpassword /它引發我以下錯誤**致命錯誤:調用成員函數對709行的/home/group/public_html/ztest/app/code/core/Mage/Customer/controllers/AccountController.php中的非對象設置setEmailValue()**我相信簡單的重定向會是理想的嗎? –

+0

有一些鏈接的ID給錯誤,但它不會在谷歌呈現所以不需要解決。沒有一次可以獲得直接網址的訪問權限,您可以將/ customer的htaccess添加到主頁。 – Mitul

0

在應用程序\等\模塊\ Mage_All.xml

變化

<Mage_Customer> 
     <active>true</active> 
     <codePool>core</codePool> 
     <depends> 
      <Mage_Eav/> 
      <Mage_Dataflow/> 
      <Mage_Directory/> 
     </depends> 
    </Mage_Customer> 

通過

<Mage_Customer> 
     <active>false</active> 
     <codePool>core</codePool> 
     <depends> 
      <Mage_Eav/> 
      <Mage_Dataflow/> 
      <Mage_Directory/> 
     </depends> 
    </Mage_Customer>