Home » Magento tutorials » 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:

Next, in recurring_profile.xml, find the following code (~line 30) and comment it out.

Finally, go and clear your Magento cache and the account section will be updated!

Hope that saves you some time!

About Gareth

Gareth is an editor at Tutorial Magento. His special hobby is to share magento knowledge and experience with everyone.

Leave a Reply

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


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

Scroll To Top