Title: Additional update_checkout trigger
Last modified: May 4, 2024

---

# Additional update_checkout trigger

 *  [Daniels Martinovs](https://wordpress.org/support/users/danielsmr/)
 * (@danielsmr)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/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.
 * _ref: [https://plugins.trac.wordpress.org/browser/woo-shipping-dpd-baltic/tags/1.2.77/public/class-dpd-baltic-public.php#L12](https://plugins.trac.wordpress.org/browser/woo-shipping-dpd-baltic/tags/1.2.77/public/class-dpd-baltic-public.php#L12)_
 * 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:
 *     ```wp-block-code
       $('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?

Viewing 1 replies (of 1 total)

 *  Thread Starter [Daniels Martinovs](https://wordpress.org/support/users/danielsmr/)
 * (@danielsmr)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/additional-update_checkout-trigger/#post-18097189)
 * [@dpdbaltics](https://wordpress.org/support/users/dpdbaltics/) it has been almost
   half of the year without any response.
 * Has there been any progress, or is there someone I can reach out to directly 
   for more information?
 * Thank you in advance to anyone who can help!
    -  This reply was modified 1 year, 7 months ago by [Daniels Martinovs](https://wordpress.org/support/users/danielsmr/).
      Reason: typo

Viewing 1 replies (of 1 total)

The topic ‘Additional update_checkout trigger’ is closed to new replies.

 * ![](https://ps.w.org/woo-shipping-dpd-baltic/assets/icon-256x256.png?rev=2081212)
 * [DPD Baltic Shipping](https://wordpress.org/plugins/woo-shipping-dpd-baltic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-shipping-dpd-baltic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-shipping-dpd-baltic/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-shipping-dpd-baltic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-shipping-dpd-baltic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-shipping-dpd-baltic/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Daniels Martinovs](https://wordpress.org/support/users/danielsmr/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/additional-update_checkout-trigger/#post-18097189)
 * Status: not resolved