Bug in checkout.js
-
Bug present in http://plugins.svn.wordpress.org/jigoshop/tags/1.15.5/assets/js/checkout.js
You create AJAX request “jigoshop_update_order_review” and replace exists page content with response:
Line 62
$('#order_review_heading').after(response);Then you call click event on selected payment element
$payment_method.click();
Problem: $payment_method contains old DOM element, which was replaced with AJAX response.
You must call click for new DOM element:
jQuery('input[name=payment_method]:checked').click();Next
Line 161
$('.payment_methods').on('click', '.input-radio', function(){
You bind event direct to .payment_methods DOM elements, which was replaced with response too.
You must bind event to document element
jQuery(document).on('click', '.payment_methods .input-radio', function(){
The topic ‘Bug in checkout.js’ is closed to new replies.