addons.min.js 1.4 KB

1
  1. jQuery(document).ready(function(){function r(){jQuery.post("","customaction=serviceaddons&checkcredit=0&"+jQuery("#coniguration_form").serialize(),function(r){""!=r&&(jQuery("#ordersummary, #footer_order_summary").addClass("cartsummary_loader"),jQuery.post("cart.php","a=view&ajax=1&checkcredit=0&onepageorder=1",function(r){jQuery("#ordersummary, #footer_order_summary").removeClass("cartsummary_loader"),jQuery("#ordersummary, #footer_order_summary").html(r),$("#applyCreditContainer").length>0&&jQuery.post("cart.php","a=checkout&ajax=1&checkcredit=1&onepageorder=1",function(r){jQuery("#applyCreditContainer").html(r),jQuery(".cccheckdb").iCheck({inheritID:!0,checkboxClass:"icheckbox_square-blue",radioClass:"iradio_square-blue",increaseArea:"20%"}),jQuery(".cccheckdb").on("ifChecked",function(r){"1"===$(this).val()&&"useFullCreditOnCheckout"===$(this).attr("id")?$("#paymentGatewaysContainer").hide():$("#paymentGatewaysContainer").show()})})}))})}jQuery("#ws-ajax-order-form").html('<div class="order-from-loader-img"><i class="fad fa-circle-notch fa-spin fa-2x"></i></div>'),jQuery.post("cart.php","a=checkout&ajax=1&checkcredit=0&onepageorder=1",function(r){jQuery("#ws-ajax-order-form").html(r),""!=jQuery("#hiddenpromo").val()&&(jQuery("#promocode").val(jQuery("#hiddenpromo").val()),jQuery(".applypromo").trigger("click"))}),jQuery("#coniguration_form").on("change",".adaddons",function(e){r()})});