Look for name of select Fixes #4365
This commit is contained in:
parent
3b96c3fb9a
commit
329a96b452
|
@ -12,7 +12,7 @@ jQuery(document).ready(function($) {
|
|||
|
||||
var shipping_methods = [];
|
||||
|
||||
$('select#shipping_method, input[name^=shipping_method][type=radio]:checked, input[name^=shipping_method][type=hidden]').each( function( index, input ) {
|
||||
$('select[name^=shipping_method], input[name^=shipping_method][type=radio]:checked, input[name^=shipping_method][type=hidden]').each( function( index, input ) {
|
||||
shipping_methods[ $(this).data( 'index' ) ] = $(this).val();
|
||||
} );
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
jQuery(document).ready(function(e){if(typeof wc_cart_params=="undefined")return!1;e(document).on("click",".shipping-calculator-button",function(){e(".shipping-calculator-form").slideToggle("slow");return!1}).on("change","select#shipping_method, input[name^=shipping_method]",function(){var t=[];e("select#shipping_method, input[name^=shipping_method][type=radio]:checked, input[name^=shipping_method][type=hidden]").each(function(n,r){t[e(this).data("index")]=e(this).val()});e("div.cart_totals").block({message:null,overlayCSS:{background:"#fff url("+wc_cart_params.ajax_loader_url+") no-repeat center",backgroundSize:"16px 16px",opacity:.6}});var n={action:"woocommerce_update_shipping_method",security:wc_cart_params.update_shipping_method_nonce,shipping_method:t};e.post(wc_cart_params.ajax_url,n,function(t){e("div.cart_totals").replaceWith(t);e("body").trigger("updated_shipping_method")})});e(".shipping-calculator-form").hide()});
|
||||
jQuery(document).ready(function(e){if(typeof wc_cart_params=="undefined")return!1;e(document).on("click",".shipping-calculator-button",function(){e(".shipping-calculator-form").slideToggle("slow");return!1}).on("change","select#shipping_method, input[name^=shipping_method]",function(){var t=[];e("select[name^=shipping_method], input[name^=shipping_method][type=radio]:checked, input[name^=shipping_method][type=hidden]").each(function(n,r){t[e(this).data("index")]=e(this).val()});e("div.cart_totals").block({message:null,overlayCSS:{background:"#fff url("+wc_cart_params.ajax_loader_url+") no-repeat center",backgroundSize:"16px 16px",opacity:.6}});var n={action:"woocommerce_update_shipping_method",security:wc_cart_params.update_shipping_method_nonce,shipping_method:t};e.post(wc_cart_params.ajax_url,n,function(t){e("div.cart_totals").replaceWith(t);e("body").trigger("updated_shipping_method")})});e(".shipping-calculator-form").hide()});
|
Loading…
Reference in New Issue