We use the PayPal integration made available through the built-in Braintree support. I want to override the following template so I can change the button URL.


I have created the following file to override this:


This has no effect though, and the old file is used. This is also demonstrated with the template hints switched on:

enter image description here

The first button has also been overridden, and this works as expected.

I have cleared cache, deployed static content etc.

Have I missed something? Do you have to have more than just a view to an override work?

1 Answer 1


In your custom theme, we don't need view\frontend.

It should be like this:

  • Yup.... just like all my other overrides! Thanks for that, I think I might stop working for today :/
    – tim.baker
    Commented Jun 10, 2017 at 16:16
  • Yup... we should relax today. Commented Jun 10, 2017 at 16:18
  • Indeed, though that is not going to happen. Before I ask it in another question, similar to this one, do you know why overwriting "\vendor\magento\module-checkout\view\frontend\web\template\cart\totals\grand-total.html" with "\app\design\frontend\Thespicery\standard\Magento_Checkout\web\template\cart\totals\grand-total.html" doesn't work? Thought I'd ask just in case. One-page check out confusing and the official docs are lacking :/ devdocs.magento.com/guides/v2.0/howdoi/checkout/…
    – tim.baker
    Commented Jun 10, 2017 at 17:37
  • Your code should work: magento.stackexchange.com/questions/96540/…. Commented Jun 11, 2017 at 0:29
  • Thanks again, it did work. Discovered after a long time a bug in GitHub that the cache and static content didn't work as expected ☹️
    – tim.baker
    Commented Jun 11, 2017 at 8:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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