-
- GaelTo

-
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
|
| |
|
 |
 |
 |
|
|
-
- coer

-
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 !
|
| |
|
 |
 |
 |
|
|
-
- drico

-
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>
|
| |
|
 |
 |
 |
|
|
|
|
-
- turbidity

-
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!
|
| |
-
- Posted: August 23 2012
-
| top
| # 20
-
|
 |
 |
 |
|
|
|
|
-
- artista3d

-
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.
|
| |
-
- Posted: September 11 2012
-
| top
| # 22
-
|
 |
 |
 |
|
|
|
|
-
- rldev

-
Total Posts: 7
Joined: 2012-05-23
|
Anyone know the name/value for Check Your Gift Card Balance so I can remove it?
|
| |
-
- Posted: January 9 2013
-
| top
| # 24
-
|
 |
 |
 |
|
|