Files
old-experiments/backend/wordpress/wp-content/plugins/woocommerce-jetpack/includes/js/wcj-checkout.js
2018-07-09 12:34:06 +02:00

11 lines
351 B
JavaScript

/*
* wcj-checkout.js
*/
jQuery( function( $ ) {
// Define that JavaScript code should be executed in "strict mode"
"use strict";
// Trigger WooCommerce's `update_checkout` function, when customer changes payment method
$('body').on('change', 'input[name="payment_method"]', function() {
$('body').trigger('update_checkout');
});
});