Do not render the PP buttons if the cancel link is available as they exclude each other

This commit is contained in:
Mészáros Róbert 2020-04-08 16:54:06 +03:00
parent 74b32a1369
commit 17a1f40d46

View file

@ -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
);