How to disable Magento Duplicate profiles and billing agreements?

Is there a simple way (for example: using local.xml) to completely disable duplicate profiles and billing conventions in Magento (v 1.7 +)?

+6
source share
2 answers

Blocks are created and links are added to:

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

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

I would usually recommend deleting links after this, but Mage_Customer_Block_Account_Navigation does not have a removeLink method, so I think the only way is to copy two xml files to your theme and remove the content. If you remove only the addLink node, the user does not have a navigation link in his login area.

There are many extensions that do this.

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

+20
source

There is another way to make this work. Create a blank.xml file in it and add the following configuration to the /etc/local.xml application file. This method does not require changes or overrides of layout files.

 <config> <frontend> <layout> <updates> <sales_billing_agreement> <file>blank.xml</file> </sales_billing_agreement> <sales_recurring_profile> <file>blank.xml</file> </sales_recurring_profile> </updates> </layout> </frontend> </config> 
0
source

Source: https://habr.com/ru/post/922091/


All Articles