0

This question already has an answer here:

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

marked as duplicate by benmarks Mar 13 '16 at 18:04

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

-2
  1. I opened this module: /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
  • 1
    no this is not the right way, copy that xml to your theme and make remove="true" – Kumar A. Oct 5 '16 at 8:25
  • 3
    Don't edit the vendor files! – slayerbleast May 3 '17 at 7:49

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