Additional update_checkout trigger
-
Hello,
In file woo-shipping-dpd-baltic/public/class-dpd-baltic-public.php you have function hooked up to wp_head which adds JS code.
This code breaks some plugins that are using update_checkout jQuery event.
In my case 3rd party payment plugin is showing/hiding Google pay button and is hooked to this action, when your plugin is active and I try to change payment method I get one extra Google pay button on every change.
You can reproduce issue using this code in browser console or by adding to the theme:
$('body').on('updated_checkout', function() { console.log("updated checkout triggered"); });
Try changing payment methods on checkout and you will see duplicated output in console. It will duplicate on every change.
As it is on the top of public class and not inside of it I could conclude that was added for testing reasons and does not play a role in the functionality of the plugin.
Can you investigate and provide any info on this?
- You must be logged in to reply to this topic.