Fix wrapper call

This commit is contained in:
carmenmaymo 2023-09-11 14:11:09 +02:00
parent 7e6d4c8a14
commit 3d6b2b0bb2
No known key found for this signature in database
GPG key ID: 6023F686B0F3102E

View file

@ -24,7 +24,8 @@ import ApplepayManager from "./ApplepayManager";
return;
}
const isMiniCart = ppcpConfig.mini_cart_buttons_enabled;
const isButton = jQuery(buttonConfig.button.cart_wrapper).length > 0;
const isButton = jQuery(buttonConfig.button.wrapper).length > 0;
console.log('isbutton' ,isButton, buttonConfig.button.wrapper)
// If button wrapper is not present then there is no need to load the scripts.
// minicart loads later?
if (!isMiniCart && !isButton) {