11 lines
351 B
JavaScript
Executable File
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');
|
|
});
|
|
}); |