If you disable output module such as product reviews, tags etc on your store configuration the links on the dashboard account is still in list and visible. In order to get rid off of those inactive links you need to remove it corresponding link.
See default Dashboard link:
OK, example if you disable the tag module and need to get off the "My Tags" link. For you to be able to remove it you need to do the following. 1. Navigate to app/design/frontend/default/default/layout/tag.xml look for the reference name “customer_account_navigation” and comment out the action code.
It should look like this:
2. Another way to solve this is by unsetting them directly on the phtml file.
a. Go to app/design/frontend/default/YOURTHEME/template/customer/account/navigation.html
b. Find the <?php $_count = count($_links); ?>
c. And Replace it <?php $_count = count($_links); unset($_links[\'recurring_profiles\']);?>
d. "recurring_profiles" you can replace this with the name of link you want to remove OR you can add another unset code in that line.
Ex.
See default Dashboard link:
OK, example if you disable the tag module and need to get off the "My Tags" link. For you to be able to remove it you need to do the following. 1. Navigate to app/design/frontend/default/default/layout/tag.xml look for the reference name “customer_account_navigation” and comment out the action code.
<action method="addLink" translate="label" module="tag"><name>tags</name><path>tag/customer/</path><label>My Tags</label></action>
It should look like this:
<!-- Customer account pages, rendered for all tabs in dashboard --> <customer_account> <!-- Mage_Tag --> <reference name="customer_account_navigation"> <!--<action method="addLink" translate="label" module="tag"><name>tags</name><path>tag/customer/</path><label>My Tags</label></action>--> </reference> </customer_account>
2. Another way to solve this is by unsetting them directly on the phtml file.
a. Go to app/design/frontend/default/YOURTHEME/template/customer/account/navigation.html
b. Find the <?php $_count = count($_links); ?>
c. And Replace it <?php $_count = count($_links); unset($_links[\'recurring_profiles\']);?>
d. "recurring_profiles" you can replace this with the name of link you want to remove OR you can add another unset code in that line.
Ex.
<?php $_count = count($_links); unset($_links['recurring_profiles']); unset($_links['downloadable_products']);?>
9 comments:
Thank you!!
@Jessica your Welcome!!.:)
Hi.. Thank you for the article!
I have something to add. I tried the 2nd method:
1- it worked well but without the '/', meaning:
unset($_links['recurring_profiles']);
2- I want to remove "My Applications" but couldn't find the right word for it (tried 'applications' but that didn't work.. what keyword should I use?
thanks again
Thank you for your good eye. I didn't see any "My Application" link on Customer Dashboard in fresh magento installation.
Are you using a sort of extension that add a section to a customer dashboard account?
- Janzell
thanks for the article !
im also looking for the my applications keyword... it drives me crazy :(
@janzell
it should come up on a fresh 1.7+ magento install.
hope you can help :)
hey dude!
Thanks for the help.
I'll try to install a 1.7 version and see. :)
@Maha and others
To remove the applications from the navigation use "OAuth Customer Tokens" for the keyword
In order to remove any links like Top Links, Footer Links, My Account Links etc via admin interface, I would recommend the following free extension which just works out of the box:
http://www.magentocommerce.com/magento-connect/frontend-links-manager.html
Happy E-Commerce!
In order to remove any links like Top Links, Footer Links, My Account Links etc via admin interface, I would recommend the following free extension which just works out of the box:
http://www.magentocommerce.com/magento-connect/frontend-links-manager.html
Happy E-Commerce!
Post a Comment