0

What is the correct and the easiest way to remove the "Billing Agreements" tab from frontend ?

The idea is just to hide the link so later if I need I could easily return it back.

To do this in Magento 1 we had to comment out in billing_agreement.xml module

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

How about in Magento 2?

Thanks

0

1 Answer 1

-3
  1. Override this module in your theme: /vendor/magento/module-paypal/view/frontend/layout/customer_account.xml
  2. I commented out the code
  3. Clear the Cache and the the link is removed
3
  • 4
    no this is not the right way, copy that xml to your theme and make remove="true"
    – Kumar A.
    Oct 5, 2016 at 8:25
  • 5
    Don't edit the vendor files!
    – Marc Pont
    May 3, 2017 at 7:49
  • How to add billing agreements in my account sidebar links? May 18, 2020 at 4:50

Not the answer you're looking for? Browse other questions tagged or ask your own question.