Magento: Removing Billing Agreements, Recurring Profiles & My Applications

So you may be like me and not need or want extra links in the Magento account area which don’t actually do anything. Personally, if they serve no purpose there is no point having them there. While it’s annyoning you can’t switch them off from the admin area, there are also no unique classes so you can’t even quick-fix it and hide using CSS.

So to remove these, you need to remove them by editing template files:

Remove ‘My Applications’ link

This file is located here:
app/design/frontend/base/default/layout/oauth.xml

Open the file in a text editor and towards the bottom of this page is a block of code that creates the menu item for the oauth section, let’s go ahead and comment it out so it doesn’t show up in Magento. It looks like this:

<!-- 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>
<oauth_customer_token_index translate="label">
<label>Customer My Account My OAuth Applications</label>
<update handle="customer_account"/>
<reference name="my.account.wrapper">
<block type="oauth/customer_token_list" name="oauth_customer_token_list" template="oauth/customer/token/list.phtml"/>
</reference>
</oauth_customer_token_index>
<!-- EOF My Applications-->

[divider line_type=”No Line” custom_height=”20″]

[divider line_type=”Small Line” custom_height=”60″]

[divider line_type=”No Line” custom_height=”20″]

Remove ‘Billing Agreement’ link

This file is located here:
app/design/frontend/base/default/layout/sales/billing_agreement.xml

Open the file in a text editor and towards the bottom of this page is a block of code that creates the menu item for the billing agreement section, let’s go ahead and comment it out so it doesn’t show up in Magento. It looks like this:

<customer_account>
<reference name="customer_account_navigation" >
<!-- <action method="addLink" translate="label"><name>billing_agreements</name><path>sales/billing_agreement/</path><label>Billing Agreements</label></action> -->
</reference>
</customer_account>

[divider line_type=”No Line” custom_height=”20″]

[divider line_type=”Small Line” custom_height=”60″]

[divider line_type=”No Line” custom_height=”20″]

Remove ‘Recurring Profiles’ link

This file is located here:
app/design/frontend/base/default/layout/sales/recurring_profiles.xml

Open the file in a text editor and towards the top of this page is a block of code that creates the menu item for the brecurring profiles section, let’s go ahead and comment it out so it doesn’t show up in Magento. It looks like this:

<customer_account>
<reference name="customer_account_navigation" >
<!-- <action method="addLink" translate="label"><name>recurring_profiles</name><path>sales/recurring_profile/</path><label>Recurring Profiles</label></action> -->
</reference>
</customer_account>

[divider line_type=”No Line” custom_height=”20″]

[divider line_type=”Small Line” custom_height=”60″]

[divider line_type=”No Line” custom_height=”20″]

And there you have it, say goodbye to those links on the customer account page. Be sure to add these changes into your template override files so you can freely update the core of Magento without undoing your modifications.

Useful post? Share it

Leave a Reply

Your email address will not be published.