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?


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 Jun 10 '17 at 16:16
  • Yup... we should relax today. – Khoa TruongDinh Jun 10 '17 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 Jun 10 '17 at 17:37
  • Your code should work: magento.stackexchange.com/questions/96540/…. – Khoa TruongDinh Jun 11 '17 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 Jun 11 '17 at 8:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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