Damar gives you more
BACK
Items per/page
Product Filter +
--> $(document).ready(function(){ //CHECK IF WE HAVE VALID USER var GetDefaultShop = $(".GLOBALshopName").text(); if( GetDefaultShop == "" ){ //THIS IS NOT A VETTED USER $(".ThePriceRANge").hide(); $(".discountInput").hide(); } else{ //THIS IS A VETTED USER $(".ThePriceRANge").show(); //CHECK WHAT DISCOUNT IS LINKED TO USSER ACCOUNT //SPLIT DISCOUNT % VALUE FROM TERMS OF PAYMENT var otherDiscount = $("#otherDiscount").text(); var discountValue =/[0-9]\w/.exec(otherDiscount)[0]; //look for digital value (% value) var discountNotice = /\s(.*)/.exec(otherDiscount)[0]; //look for value after 1st space found discountNotice = discountNotice.substr(1); //UPDATE DISCOUNT DROPDOWN $(".discountInput").show(); $("#discountOtopn3").show(); $("#discountOtopn3").text(discountValue+"%"); $("#discountOtopn3").val((100 - discountValue)/100); $(".dHt4").text(discountNotice); } // /*===========================================================================================*/ /* CHECK IF ITS AN INTERNATIONAL CUSTOMER OR NOT. */ /*===========================================================================================*/ /* function CheckFOR_Dollar(){ var currentStore_Acc = getCookie("company_acc"); if (currentStore_Acc != "" && currentStore_Acc != undefined ){ USDcust = /(USD)/.test(currentStore_Acc); } else{ USDcust = /(USD)/.test(Global_SHOP); } if(USDcust){ $(".IS_USD").show(); $(".IS_NOT_USD").hide(); } else{ $(".IS_NOT_USD").show(); $(".IS_USD").hide(); } } CheckFOR_Dollar(); //HIDE DISCOUNT DROP DOWN FROM INTERNATIONAL CUSTOMERS if (CheckFOR_Dollar()){ debugger; $(".discountInput").hide(); }); */