2015-06-17 11:12:49 +00:00
|
|
|
jQuery(function(a){a(".woocommerce-ordering").on("change","select.orderby",function(){a(this).closest("form").submit()}),a("input.qty:not(.product-quantity input.qty)").each(function(){var b=parseFloat(a(this).attr("min"));b>=0&&parseFloat(a(this).val())<b&&a(this).val(b)});var b={url:wc_cart_fragments_params.wc_ajax_url+"geolocate",type:"GET",success:function(a){console.log(a),console.log(":)");var b=window.location.toString();b.indexOf("location=")<0&&(b=b+"?location="+a.country,window.location=b)}};a.ajax(b)});
|