mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Do not render the PP buttons if the cancel link is available as they exclude each other
This commit is contained in:
parent
74b32a1369
commit
17a1f40d46
1 changed files with 4 additions and 0 deletions
|
@ -31,6 +31,10 @@ const bootstrap = ()=> {
|
|||
|
||||
// Configure checkout buttons
|
||||
jQuery( document.body ).on( 'updated_checkout', () => {
|
||||
if ( jQuery('.ppcp-cancel').length ) {
|
||||
return;
|
||||
}
|
||||
|
||||
const renderer = new Renderer(
|
||||
PayPalCommerceGateway.button.order_button_wrapper
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue