Magento seems to include the “Login” link by default. However, Magento does not seem to show a link to Logout after one logs in.
If you have been searching tirelessly for a solution to your Magento logout woes, have no worries your search is at an end! We’ve already searched and found. We’ve included the code you will need to add a Logout link to Magento. This code actually only displays the pertinent link – so if a user is already logged in they will only see a Logout link and if a user is not Logged in then they will see a Login link.
Here is the code:
isLoggedIn()): ?>
__('Login') ?>
__('Logout') ?>
So there you have it, a way to add a Logout link to Magento!
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
机房租用,北京机房租用,IDC机房托管, http://www.e1idc.net