Closed csalmeida closed 3 years ago
Hi @csalmeida!
PayPal Checkout doesn't provide any templates that can be overridden. That's because all we do is integrate with the regular single product, cart & checkout pages to display the PayPal button (or the other funding methods). Even the look of those buttons is determined by PayPal scripts, so can't really be controlled via an override (or CSS).
That said, depending on what you're trying to do, there might be a way to do it using only hooks (actions or filters), which are provided by WooCommerce and it's what PayPal Checkout uses to integrate with things.
If you still have the need to override certain aspects of the extension and have specific questions on how to do a particular kind of override, let us know and we'll try to provide some guidance.
Describe the bug
This is a question and not a bug, I thought this could be the right place to add it in so more people can reference to it in the future.
I have been working with the Woo Commerce plug-in which allows to override its templates by placing a new version of them in a
/woocommerce
folder at the directory of a theme.However I can't seem to do the same when I need to override markup for this particular plug-in. Am I missing something? I noticed that markup is directly built in classes which is slightly different to how Woo Commerce arranges it with templates.
I am considering creating a copy of the plug-in and add my own overrides but as I understand this comes at a cost of future updates.
For context no layout plugins like Div or Elementor are being used, this is a theme written from scratch that makes use of
.twig
templates.Any thoughts or information on how to go about this would be deeply appreciated.
To reproduce
woocommerce-gateway-paypal-express-checkout
in your theme directoryincludes/class-wc-gateway-ppec-plugin.php
Screenshots
Expected behavior
The new value should show on the page? (not actually sure if this should happen but it was what I expected)
Environment (please complete the following information):
5.5.1
4.6.0
2.1.0
any
none
Additional details
System status
``` ```