Try the Demo

Magento Forum

   
Page 2 of 2
Remove Links from Account Navigation List.. 
 
GaelTo
Jr. Member
 
Total Posts:  12
Joined:  2010-08-01
 
hs037 - 31 August 2011 06:10 AM

Tamayo - 10 September 2010 05:19 PM
Another way to remove these links is to unset them in the template file. Open up app/design/frontend/default/YOURTHEME/template/customer/account/navigation.html

Find:
<?php $_count = count($_links); ?>

And replace with:
<?php $_count = count($_links); unset($_links[\'recurring_profiles\']); unset($_links[\'billing_agreements\']); ?>

Thanks for that hint! Made my day. But I guess it should be without the backslashes like this:

<?php $_count count($_links); unset($_links['recurring_profiles']); unset($_links['billing_agreements']); ?>

Works great, thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
coer
Jr. Member
 
Total Posts:  18
Joined:  2011-03-14
 
cfr - 24 August 2010 01:20 AM

The code in my local.xml looks like this:

<?xml version="1.0"?>
<layout version="0.1.0">
   <
customer_account>
     <
reference name="customer_account_navigation">
                <
action method="removeLinkByName"><name>recurring_profiles</name></action>
                <
action method="removeLinkByName"><name>billing_agreements</name></action>
                <
action method="removeLinkByName"><name>downloadable_products</name></action>
        </
reference>   
    </
customer_account>
</
layout>

Hi,
Great suggestions!

With Magento 1.7 a new Customer Account item has been added, called ‘My Applications”.
Can you help me understand which line in the local.xml file I should add for this?

I tried this, but it doesn’t work.

<action method="removeLinkByName"><name>my_applications</name></action>

I would really appreciate your (or others) help !

 
Magento Community Magento Community
Magento Community
Magento Community
 
drico
Jr. Member
 
Total Posts:  2
Joined:  2007-08-31
 

Hi,
Great suggestions!

With Magento 1.7 a new Customer Account item has been added, called ‘My Applications”.
Can you help me understand which line in the local.xml file I should add for this?

I tried this, but it doesn’t work.

<action method="removeLinkByName"><name>my_applications</name></action>

I would really appreciate your (or others) help !

Hi,

The name in the layout is OAuth Customer Tokens

<!-- My Applications-->
    <
customer_account>
        <
reference name="customer_account_navigation">
            <
action method="addLink" translate="label" module="oauth">
                <
name>OAuth Customer Tokens</name>
                <
path>oauth/customer_token</path>
                <
label>My Applications</label>
            </
action>
        </
reference>
    </
customer_account>

 
Magento Community Magento Community
Magento Community
Magento Community
 
riahc3
Sr. Member
 
Total Posts:  120
Joined:  2011-11-18
 
MagePsycho - 09 September 2011 10:48 PM

I have developed an extension called Frontend Links Manager for this purpose:
http://www.magentocommerce.com/magento-connect/MagePsycho/extension/7905/frontend_links_manager
You can easily turn on/off the required customer navigational links via backend.

Cheers!!

Your extension works great but it changed the top left tab from my langauge to “Home”. How do I fix this?

 
Magento Community Magento Community
Magento Community
Magento Community
 
turbidity
Jr. Member
 
Total Posts:  3
Joined:  2011-10-21
 

So I used this code in design/frontend/default/THEME_NAME/template/customer/account/navigation.phtml
To \” remove My Account links in magento 1.7 \” :

:

<?php $_count count($_links); unset($_links[\'recurring_profiles\']); unset($_links[\'billing_agreements\']); unset($_links[\'reviews\']); unset($_links[\'tags\']); unset($_links[\'OAuth Customer Tokens\']); unset($_links[\'newsletter\']); unset($_links[\'downloadable_products\']);?>

Through some trial and error I was able to find the names of all the links above except \"My Applications\” = OAuth Customer Tokens took me a while.

So there. The my account block links are removed.

thanks everybody!

 
Magento Community Magento Community
Magento Community
Magento Community
 
holylander
Jr. Member
 
Total Posts:  13
Joined:  2012-07-11
 

Thanks! it worked for me wink

 Signature 

http://serviweb.es

 
Magento Community Magento Community
Magento Community
Magento Community
 
artista3d
Jr. Member
 
Total Posts:  1
Joined:  2012-06-26
 

Thanks for the tips!

What worked for me was to change line 35 in navigation.phtml from this:

<?php $_count count($_links); ?>

to this:

<?php $_count count($_links); ?>
            
            <?php 
unset($_links['recurring_profiles']); ?>
            <?php 
unset($_links['billing_agreements']); ?>
            <?php 
unset($_links['reviews']); ?>
            <?php 
unset($_links['tags']); ?>
            <?php 
unset($_links['OAuth Customer Tokens']); ?>
            <?php 
unset($_links['newsletter']); ?>
            <?php 
unset($_links['downloadable_products']); ?>

I have removed the backslashes, because my editor was reporting a syntax error.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Alexander_Menk
Member
 
Total Posts:  64
Joined:  2011-06-27
Mainz, Germany
 

There is a module for this: N98_LayoutHelper that helps to remove account links in a clean way:

https://github.com/netz98/N98_LayoutHelper

 Signature 

Viele Grüße,
Alexander Menk

iMi Gruppe | AddisMap.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
rldev
Jr. Member
 
Total Posts:  7
Joined:  2012-05-23
 

Anyone know the name/value for Check Your Gift Card Balance so I can remove it?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 2 of 2