Wednesday , December 19 2018
Home >> All tutorial >> Removing Billing Agreements and Recurring Profiles from User Account Dashboard

Removing Billing Agreements and Recurring Profiles from User Account Dashboard

When I was first learning how to customize Magento, one of the most illusive changes was extending the layout XML to remove Billing Agreements and Recurring Profiles from the users’ account section.

First, you need to find your theme so we can extend it. For the purposes of this tutorial, we’re using a demo store so we’re going to extend the base theme into default/default. The path to your theme should follow this general pattern: app/design/frontend/[your package]/[your theme]/.

The theme we’re extending (default/default) has no extended files at this time. We need to make a folder called layout.

The files that control Billing Agreements and Recurring Profiles in the User Account Dashboard, are in layout/sales/ so create a folder called sales inside the layout folder.

Now, from the base theme, go into layout/sales and copy the 2 files into your newly extended layout/sales folder. These files are billing_agreement.xml and recurring_profile.xml.

Here’s what that will look like:

Here’s what it should look like when you are done extending the layout files:

Let’s start with billing_agreement.xml. In that file, find the section (~line 50) that starts with .

Comment out this code:

  1. <customer_account>
  2. <reference name=“customer_account_navigation” >
  3. <action method=“addLink” translate=“label”><name>billing_agreements</name><path>sales/billing_agreement/</path><label>Billing Agreements</label></action>
  4. </reference>
  5. </customer_account>
Next, in recurring_profile.xml, find the following code (~line 30) and comment it out.
  1. <customer_account>
  2. <reference name=“customer_account_navigation” >
  3. <action method=“addLink” translate=“label”><name>recurring_profiles</name><path>sales/recurring_profile/</path><label>Recurring Profiles</label></action>
  4. </reference>
  5. </customer_account>
Finally, go and clear your Magento cache and the account section will be updated!

Hope that saves you some time!

Here is the library of Magento Download for FREE (all versions)

Your Magento website needs a powerful Magento ERP for stock control.


magento erp

About Champ

Leave a Reply

Your email address will not be published. Required fields are marked *

Heap | Mobile and Web Analytics