Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable Magento Recurring profiles and billing agreements?

Tags:

magento

Is there an easy way (ex: using local.xml) to completely disable recurring profiles and billing agreements in Magento (v 1.7+)?

like image 741
callmedpit Avatar asked Aug 03 '12 21:08

callmedpit


1 Answers

The blocks are created and the links are added in:

app/design/frontend/base/default/layout/sales/billing_agreement.xml

app/design/frontend/base/default/layout/sales/recurring_profile.xml

Normally i would recommend to remove the links afterwards, but the Mage_Customer_Block_Account_Navigation doesn't have a removeLink method, so I think the only way is to copy the two xml files in your theme and remove the content. If you remove only the addLink node, the user has no link in the navigation in his login-area.

There are lots of extension which do this.

I implement my own one: https://github.com/ikonoshirt/ExtendedAccountNavigation

like image 93
Fabian Blechschmidt Avatar answered Oct 04 '22 19:10

Fabian Blechschmidt