Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jeffsmonteiro/451da98e6beb1a6601665b1696ebbfa2 to your computer and use it in GitHub Desktop.
Save jeffsmonteiro/451da98e6beb1a6601665b1696ebbfa2 to your computer and use it in GitHub Desktop.
Woocommerce jQuery Events List
(WIP) This file contains a list with Woocommerce jquery events
Usage: you can fire functions when some event happen
Example:
$(document.body).on('woocommerce_event', function(){
// do stuff
});
Events
adding_to_cart: after button quantity or add to cart is clicked
added_to_cart: after product is added or removed from cart
removed_from_cart: after product is removed from cart
update_checkout: call checkout update
init_checkout: after user access checkout page
country_to_state_changed: after user change country selector
price_slider_updated: after price slider update
wc_fragments_loaded: after cart fragments is loaded
wc_fragment_refresh: refresh cart fragments
wc_fragments_refreshed: after cart fragments refresh
wc_fragments_ajax_error: after error while trying to refresh cart fragments
wc_cart_button_updated: after cart button update
cart_page_refreshed: after cart page updates
cart_totals_refreshed: after cart totals updates
updated_wc_div:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment