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