How to disable “Billing Agreements” and “Recurring Profiles” in Magento

With the release of Magento 1.4.1.0 also came the introduction of Billing Agreements and Recurring Profiles. These new functionalities were based on commercial modules which offered recurring periodical payment. In this post I show you how you can easily disable them.

With the release of Magento 1.4.1.0 also came the introduction of “Billing Agreements” and “Recurring Profiles”. These new functionalities were based on commercial modules which offered recurring periodical payment. Sadly they’ve been build into Mage_Core which doesn’t allow you to disable their output via System > Configuration > Advanced > Advanced.

To disable, or rather hide, these two functions from the account navigation you can copy billing_agreement.xml and recurring_profile.xml from /app/design/frontend/base/default/layout/sales/ to /app/design/frontend/default/yourtheme/layout/sales/.

After copying the files to their new location you can edit them. Find the following code in billing_agreement.xml :

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

And change it to :

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

Then find the following code in recurring_profile.xml :

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

And change it to :

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

By doing this you’ve removed the links to these functionalities from the account navigation. If you ever have to enable them you can simply uncomment the lines again.

Author: Luc De Brouwer

Mild-mannered software engineer, Nine Inch Nails lover, gin drinker, cat person, and somewhat of a geek. Ron Swanson is my spirit animal.

16 thoughts on “How to disable “Billing Agreements” and “Recurring Profiles” in Magento”

  1. Really enjoying your Magento posts.. i’ve struggled to find good posts on Magento, most tell you to modify core files!!!

    Keep it up! Do you have anything for modifying the invoice / packing slips?

  2. Thanks for your great post. But anyway: when I only remove the links i can still access these pages via url!

    Isn’t there a way to disable this feature completely?

  3. Dear All
    Just we have released a free extension called Frontend Links Manager for Magento Developers. Now you can easily turn on/off the frontend links(top, footer, home in catalog navigation & customer navigation) via backend.
    Here goes the extension link:
    http://www.magepsycho.com/frontend-links-manager.html

    At least this makes the task much more easier and encapsulates the complexity of xml layout updates.

    Cheers!!

    Happy E-Commerce
    MagePsycho

Comments are closed.