search
top

Disable ‘Billing Agreements’ and ‘Recurring Profiles’ in Magento

Hello All ,

From the new functionalities introduced from Magento 1.4.1.0 , two are ‘Billing Agreements’ and ‘Recurring Profiles’

Sad thing is that this cannot be disabled from admin completly.

For hiding the links from the navigation in ‘My Account’ section of Customer, 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>

Please Note: This will remove only the links from Navigation not disable the functionality.

Hope this helps.

7 Responses to “Disable ‘Billing Agreements’ and ‘Recurring Profiles’ in Magento”

  1. MagePsycho says:

    In order to remove any links like Top Links, Footer Links, My Account Links etc via admin interface, I would recommend the following free extension which just works out of the box:
    http://www.magentocommerce.com/magento-connect/frontend-links-manager.html
    Happy E-Commerce!

  2. Rob says:

    Any thoughts how I remove the ‘Billing Agreements’ and ‘Recurring Profiles’ junk from the backend – Admin section (adminHTML). Most notably from the create/edit customer section (Tabs)?

  3. Rodrigo F. says:

    Thanks!

    Great post!

  4. BJ says:

    Thnxs.

    Worked perfect for me!

Leave a Reply

top