Skip to content

Instantly share code, notes, and snippets.

@larsmqller
Created September 22, 2018 14:50
Show Gist options
  • Save larsmqller/859da8df98b73e0ad40580901847d0b6 to your computer and use it in GitHub Desktop.
Save larsmqller/859da8df98b73e0ad40580901847d0b6 to your computer and use it in GitHub Desktop.
Woocommerce cart and checkout triggers
//Cart
//https://github.com/woocommerce/woocommerce/blob/d30c54ef846b086b96278375b71f7c379d9aa8e8/assets/js/frontend/cart.js
$( document.body ).on( 'update_checkout', function(){});
$( document.body ).on( 'updated_cart_totals', function(){});
$( document.body ).on( 'updated_wc_div', function(){});
$( document.body ).on( 'updated_shipping_method', function(){});
$( document.body ).on( 'applied_coupon', function(){});
$( document.body ).on( 'removed_coupon', function(){});
// Checkout
// https://github.com/woocommerce/woocommerce/blob/d30c54ef846b086b96278375b71f7c379d9aa8e8/assets/js/frontend/checkout.js
$( document.body ).on( 'update_checkout', function(){});
$( document.body ).on( 'init_checkout', function(){});
$( document.body ).on( 'checkout_error', function(){});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment