Hello @barbeluk1,
Indeed, there is an incompatibility issue between some of the JavaScript handles used by Woocommerce PayPal and SG optimizer’s JavaScript optimization options.
We are aware of the issue and it has already been reported here. The Woocommerce developers have already merged the request and a fix should be released with one of the future versions of the plugin (most likely 1.9.3).
You can add the following filter to your theme’s functions.php file to resolve the issue and use both plugins until it is fixed in a future release:
add_filter(
'sgo_js_minify_exclude',
function ( array $scripts ) {
$scripts_to_exclude = array( 'ppcp-smart-button', 'ppcp-oxxo', 'ppcp-pay-upon-invoice', 'ppcp-vaulting-myaccount-payments', 'ppcp-gateway-settings', 'ppcp-webhooks-status-page', 'ppcp-tracking' );
return array_merge( $scripts, $scripts_to_exclude );
}
);
Best regards,
Daniela Ivanova