Files
old-experiments/backend/wordpress/wp-content/plugins/woocommerce-jetpack/includes/js/wcj-checkout.js
2018-06-29 14:40:28 +02:00

11 lines
351 B
JavaScript
Executable File

/*
* 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');
});
});