"+n[i].attributeName+"<\/td> | "+(n[i].CustomValue!=null?n[i].CustomValue:n[i].Name)+"<\/td><\/tr>")}function addModels(n,t){console.log(n,t);let r="#tblModels_"+t;$(r+" tbody").children().remove();for(var i=0;i'+n[i].ModelNo+"<\/td><\/tr>")}function addAlterList(n,t){console.log(n,t);let r="#divAlters_"+t;$(r).children().remove();for(var i=0;i'+n[i].Name+'<\/b> <\/a> '+n[i].Price+"<\/b> "+n[i].Sku+"<\/span> "+(n[i].InStock==!0?'<\/div> موجود<\/span>':'<\/div> ناموجود<\/span>')+(i!=n.length-1?" ":""))}}function openAlter(n){$.ajax({cache:!1,"async":!0,type:"POST",url:"/Specifications/getProductParent",data:{productId:n},success:function(n){n!=null&&(console.log(n,"data88"),window.open("/"+n.SeName,"_blank"))}})}function setStock(n,t,i,r){var u;u=i==2?stockProducts.find(n=>n.sku==r+"IR"):assocsitedProducts.find(n=>n.id==t);setTimeout(setSpecifications(u.id,t),5e3);$("#variant-"+t).text(u.name);$("#price-value-"+t).text(u.price);$("#stock-"+t).find("div:first").removeClass("withStock1");$("#stock-"+t).find("div:first").removeClass("noStock1");$("#stock-"+t).find("div:first").addClass(u.stock=="True"?"withStock1":"noStock1");$("#stock-"+t).find("b").text(u.stock=="True"?"موجود":"ناموجود");$("#sku-"+t).text(u.sku);$("#add-to-cart-button-"+t).attr("data-productid",u.id);$("#add-to-cart-button-"+t).attr("onclick",'return AjaxCart.addproducttocart_details("/addproducttocart/details/'+u.id+'/1","#product-details-form"),!1')}function setMainImage(n,t){$("#divGallery").find("img").removeClass("activeImg");$("#divMainPicture img").attr("src",t);$(n).addClass("activeImg")}function setSpecifications(n,t){let r=productList.find(t=>t.productId==n).product,i=productList.find(n=>n.productId==t).product;addAlterList(r.alterListDto,t);addSpecifications(i.specs,t);addPictures(i.PictureModels,t);addModels(i.relatedmodels,t)}var selectedSku=localStorage.getItem("selectedSku"),countt,i,p,mainProduct;localStorage.removeItem("selectedSku");var assocsitedProducts=[],stockProducts=[],productList=[];$("#divGallery").find("img:first").addClass("activeImg");$("#divMainPicture").hiZoom({width:300,height:200,position:"left",distance:1});$(".hizoom").hiZoom({width:300,height:200,position:"left",distance:1});countt="49";i=1;stockProducts.push({id:"15616",name:"6710V00145J",stock:"True",price:" 140,000 تومان",sku:"6710V00145J"});stockProducts.push({id:"15617",name:"6710V00145J",stock:"False",price:" 70,000 تومان",sku:"6710V00145JIR"});stockProducts.push({id:"15618",name:"AKB69680430",stock:"False",price:" 140,000 تومان",sku:"AKB69680430"});stockProducts.push({id:"15619",name:"AKB69680430",stock:"False",price:" 70,000 تومان",sku:"AKB69680430IR"});stockProducts.push({id:"15620",name:"AKB72915246",stock:"False",price:" 140,000 تومان",sku:"AKB72915246"});stockProducts.push({id:"15621",name:"AKB72915246",stock:"False",price:" 70,000 تومان",sku:"AKB72915246IR"});stockProducts.push({id:"15622",name:"AKB73715603",stock:"False",price:" 140,000 تومان",sku:"AKB73715603"});stockProducts.push({id:"15623",name:"AKB73715605",stock:"False",price:" 140,000 تومان",sku:"AKB73715605"});stockProducts.push({id:"15624",name:"AKB73715605",stock:"False",price:" 70,000 تومان",sku:"AKB73715605IR"});stockProducts.push({id:"15625",name:"AKB73715680",stock:"False",price:" 140,000 تومان",sku:"AKB73715680"});stockProducts.push({id:"15626",name:"AKB73715680",stock:"False",price:" 70,000 تومان",sku:"AKB73715680IR"});stockProducts.push({id:"15627",name:"AKB73756502",stock:"False",price:" 140,000 تومان",sku:"AKB73756502"});stockProducts.push({id:"15628",name:"AKB73756504",stock:"False",price:" 140,000 تومان",sku:"AKB73756504"});stockProducts.push({id:"15629",name:"AKB73756504",stock:"False",price:" 70,000 تومان",sku:"AKB73756504IR"});stockProducts.push({id:"15630",name:"کنترل هوشمند ال جی M4",stock:"False",price:" 390,000 تومان",sku:"AKB73795401IR"});stockProducts.push({id:"15631",name:"AKB74115502",stock:"False",price:" 140,000 تومان",sku:"AKB74115502"});stockProducts.push({id:"15632",name:"AKB74115502",stock:"False",price:" 70,000 تومان",sku:"AKB74115502IR"});stockProducts.push({id:"15633",name:"AKB74475443",stock:"False",price:" 140,000 تومان",sku:"AKB74475443"});stockProducts.push({id:"15634",name:"AKB74475443",stock:"True",price:" 70,000 تومان",sku:"AKB74475443IR"});stockProducts.push({id:"15635",name:"AKB74475450",stock:"False",price:" 140,000 تومان",sku:"AKB74475450"});stockProducts.push({id:"15636",name:"AKB74475450",stock:"False",price:" 70,000 تومان",sku:"AKB74475450IR"});stockProducts.push({id:"15637",name:"AKB74475451",stock:"False",price:" 140,000 تومان",sku:"AKB74475451"});stockProducts.push({id:"15638",name:"AKB74475451",stock:"False",price:" 70,000 تومان",sku:"AKB74475451IR"});stockProducts.push({id:"15639",name:"AKB74475480",stock:"False",price:" 140,000 تومان",sku:"AKB74475480"});stockProducts.push({id:"15640",name:"AKB74475480",stock:"False",price:" 70,000 تومان",sku:"AKB74475480IR"});stockProducts.push({id:"15641",name:"AKB74475490",stock:"False",price:" 140,000 تومان",sku:"AKB74475490"});stockProducts.push({id:"15642",name:"AKB74475490",stock:"False",price:" 70,000 تومان",sku:"AKB74475490IR"});stockProducts.push({id:"15643",name:"AKB74595407",stock:"False",price:" 180,000 تومان",sku:"AKB74595407"});stockProducts.push({id:"15644",name:"AKB74595407",stock:"False",price:" 90,000 تومان",sku:"AKB74595407IR"});stockProducts.push({id:"15645",name:"AKB74915311",stock:"False",price:" 140,000 تومان",sku:"AKB74915311"});stockProducts.push({id:"15646",name:"AKB74915311",stock:"False",price:" 70,000 تومان",sku:"AKB74915311IR"});stockProducts.push({id:"15647",name:"AKB74915342",stock:"False",price:" 140,000 تومان",sku:"AKB74915342"});stockProducts.push({id:"15648",name:"AKB74915342",stock:"False",price:" 70,000 تومان",sku:"AKB74915342IR"});stockProducts.push({id:"15649",name:"AKB74915354",stock:"False",price:" 140,000 تومان",sku:"AKB74915354"});stockProducts.push({id:"15650",name:"AKB74915354",stock:"False",price:" 70,000 تومان",sku:"AKB74915354IR"});stockProducts.push({id:"15651",name:"AKB75095304",stock:"False",price:" 140,000 تومان",sku:"AKB75095304"});stockProducts.push({id:"15652",name:"AKB75095304",stock:"False",price:" 70,000 تومان",sku:"AKB75095304IR"});stockProducts.push({id:"15653",name:"AKB75375608",stock:"False",price:" 140,000 تومان",sku:"AKB75375608"});stockProducts.push({id:"15654",name:"AKB75375608",stock:"False",price:" 70,000 تومان",sku:"AKB75375608IR"});stockProducts.push({id:"15655",name:"AKB75375609",stock:"False",price:" 140,000 تومان",sku:"AKB75375609"});stockProducts.push({id:"15656",name:"AKB75375609",stock:"False",price:" 70,000 تومان",sku:"AKB75375609IR"});stockProducts.push({id:"15657",name:"AKB75675302",stock:"False",price:" 140,000 تومان",sku:"AKB75675302"});stockProducts.push({id:"15658",name:"AKB75675302",stock:"False",price:" 70,000 تومان",sku:"AKB75675302IR"});stockProducts.push({id:"15659",name:"AKBTVLGC03D",stock:"False",price:" 100,000 تومان",sku:"AKBTVLGC03D"});stockProducts.push({id:"15660",name:"AKBTVNO0001",stock:"True",price:" 100,000 تومان",sku:"AKBTVNO0001"});stockProducts.push({id:"15661",name:"AKBTVORG001",stock:"False",price:" 120,000 تومان",sku:"AKBTVORG001"});stockProducts.push({id:"15662",name:"AKBTVORG001",stock:"False",price:" 60,000 تومان",sku:"AKBTVORG001IR"});stockProducts.push({id:"20939",name:"MKJ40653806",stock:"False",price:" 150,000 تومان",sku:"MKJ40653806"});stockProducts.push({id:"20940",name:"MKJ40653806",stock:"True",price:" 75,000 تومان",sku:"MKJ40653806IR"});console.log(countt,"countt");getProductDetail("15616");console.log("6710V00145J_selected:"+selectedSku,"6710V00145J".indexOf(selectedSku));$("#div_15616").offset()!==undefined&&"6710V00145J".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15616").offset().top-200},500);selectedSku!=null&&"6710V00145J".indexOf(selectedSku)!=-1&&$("#div_15616").css("border-top","2px solid red");assocsitedProducts.push({id:"15616",name:"6710V00145J",stock:"True",price:" 140,000 تومان",sku:"6710V00145J"});$("input[name=radio-15616][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15617");console.log("6710V00145JIR_selected:"+selectedSku,"6710V00145JIR".indexOf(selectedSku));$("#div_15616").offset()!==undefined&&"6710V00145JIR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15616").offset().top-200},500);selectedSku!=null&&"6710V00145JIR".indexOf(selectedSku)!=-1&&$("#div_15616").css("border-top","2px solid red");p="6710V00145J";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15616][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15618");console.log("AKB69680430_selected:"+selectedSku,"AKB69680430".indexOf(selectedSku));$("#div_15618").offset()!==undefined&&"AKB69680430".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15618").offset().top-200},500);selectedSku!=null&&"AKB69680430".indexOf(selectedSku)!=-1&&$("#div_15618").css("border-top","2px solid red");assocsitedProducts.push({id:"15618",name:"AKB69680430",stock:"False",price:" 140,000 تومان",sku:"AKB69680430"});console.log(countt,"countt");getProductDetail("15619");console.log("AKB69680430IR_selected:"+selectedSku,"AKB69680430IR".indexOf(selectedSku));$("#div_15618").offset()!==undefined&&"AKB69680430IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15618").offset().top-200},500);selectedSku!=null&&"AKB69680430IR".indexOf(selectedSku)!=-1&&$("#div_15618").css("border-top","2px solid red");p="AKB69680430";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15618][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15620");console.log("AKB72915246_selected:"+selectedSku,"AKB72915246".indexOf(selectedSku));$("#div_15620").offset()!==undefined&&"AKB72915246".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15620").offset().top-200},500);selectedSku!=null&&"AKB72915246".indexOf(selectedSku)!=-1&&$("#div_15620").css("border-top","2px solid red");assocsitedProducts.push({id:"15620",name:"AKB72915246",stock:"False",price:" 140,000 تومان",sku:"AKB72915246"});console.log(countt,"countt");getProductDetail("15621");console.log("AKB72915246IR_selected:"+selectedSku,"AKB72915246IR".indexOf(selectedSku));$("#div_15620").offset()!==undefined&&"AKB72915246IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15620").offset().top-200},500);selectedSku!=null&&"AKB72915246IR".indexOf(selectedSku)!=-1&&$("#div_15620").css("border-top","2px solid red");p="AKB72915246";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15620][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15622");console.log("AKB73715603_selected:"+selectedSku,"AKB73715603".indexOf(selectedSku));$("#div_15622").offset()!==undefined&&"AKB73715603".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15622").offset().top-200},500);selectedSku!=null&&"AKB73715603".indexOf(selectedSku)!=-1&&$("#div_15622").css("border-top","2px solid red");assocsitedProducts.push({id:"15622",name:"AKB73715603",stock:"False",price:" 140,000 تومان",sku:"AKB73715603"});console.log(countt,"countt");getProductDetail("15623");console.log("AKB73715605_selected:"+selectedSku,"AKB73715605".indexOf(selectedSku));$("#div_15623").offset()!==undefined&&"AKB73715605".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15623").offset().top-200},500);selectedSku!=null&&"AKB73715605".indexOf(selectedSku)!=-1&&$("#div_15623").css("border-top","2px solid red");assocsitedProducts.push({id:"15623",name:"AKB73715605",stock:"False",price:" 140,000 تومان",sku:"AKB73715605"});console.log(countt,"countt");getProductDetail("15624");console.log("AKB73715605IR_selected:"+selectedSku,"AKB73715605IR".indexOf(selectedSku));$("#div_15623").offset()!==undefined&&"AKB73715605IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15623").offset().top-200},500);selectedSku!=null&&"AKB73715605IR".indexOf(selectedSku)!=-1&&$("#div_15623").css("border-top","2px solid red");p="AKB73715605";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15623][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15625");console.log("AKB73715680_selected:"+selectedSku,"AKB73715680".indexOf(selectedSku));$("#div_15625").offset()!==undefined&&"AKB73715680".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15625").offset().top-200},500);selectedSku!=null&&"AKB73715680".indexOf(selectedSku)!=-1&&$("#div_15625").css("border-top","2px solid red");assocsitedProducts.push({id:"15625",name:"AKB73715680",stock:"False",price:" 140,000 تومان",sku:"AKB73715680"});console.log(countt,"countt");getProductDetail("15626");console.log("AKB73715680IR_selected:"+selectedSku,"AKB73715680IR".indexOf(selectedSku));$("#div_15625").offset()!==undefined&&"AKB73715680IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15625").offset().top-200},500);selectedSku!=null&&"AKB73715680IR".indexOf(selectedSku)!=-1&&$("#div_15625").css("border-top","2px solid red");p="AKB73715680";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15625][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15627");console.log("AKB73756502_selected:"+selectedSku,"AKB73756502".indexOf(selectedSku));$("#div_15627").offset()!==undefined&&"AKB73756502".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15627").offset().top-200},500);selectedSku!=null&&"AKB73756502".indexOf(selectedSku)!=-1&&$("#div_15627").css("border-top","2px solid red");assocsitedProducts.push({id:"15627",name:"AKB73756502",stock:"False",price:" 140,000 تومان",sku:"AKB73756502"});console.log(countt,"countt");getProductDetail("15628");console.log("AKB73756504_selected:"+selectedSku,"AKB73756504".indexOf(selectedSku));$("#div_15628").offset()!==undefined&&"AKB73756504".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15628").offset().top-200},500);selectedSku!=null&&"AKB73756504".indexOf(selectedSku)!=-1&&$("#div_15628").css("border-top","2px solid red");assocsitedProducts.push({id:"15628",name:"AKB73756504",stock:"False",price:" 140,000 تومان",sku:"AKB73756504"});console.log(countt,"countt");getProductDetail("15629");console.log("AKB73756504IR_selected:"+selectedSku,"AKB73756504IR".indexOf(selectedSku));$("#div_15628").offset()!==undefined&&"AKB73756504IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15628").offset().top-200},500);selectedSku!=null&&"AKB73756504IR".indexOf(selectedSku)!=-1&&$("#div_15628").css("border-top","2px solid red");p="AKB73756504";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15628][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15630");console.log("AKB73795401IR_selected:"+selectedSku,"AKB73795401IR".indexOf(selectedSku));$("#div_15629").offset()!==undefined&&"AKB73795401IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15629").offset().top-200},500);selectedSku!=null&&"AKB73795401IR".indexOf(selectedSku)!=-1&&$("#div_15629").css("border-top","2px solid red");p="AKB73795401";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15629][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15631");console.log("AKB74115502_selected:"+selectedSku,"AKB74115502".indexOf(selectedSku));$("#div_15631").offset()!==undefined&&"AKB74115502".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15631").offset().top-200},500);selectedSku!=null&&"AKB74115502".indexOf(selectedSku)!=-1&&$("#div_15631").css("border-top","2px solid red");assocsitedProducts.push({id:"15631",name:"AKB74115502",stock:"False",price:" 140,000 تومان",sku:"AKB74115502"});console.log(countt,"countt");getProductDetail("15632");console.log("AKB74115502IR_selected:"+selectedSku,"AKB74115502IR".indexOf(selectedSku));$("#div_15631").offset()!==undefined&&"AKB74115502IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15631").offset().top-200},500);selectedSku!=null&&"AKB74115502IR".indexOf(selectedSku)!=-1&&$("#div_15631").css("border-top","2px solid red");p="AKB74115502";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15631][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15633");console.log("AKB74475443_selected:"+selectedSku,"AKB74475443".indexOf(selectedSku));$("#div_15633").offset()!==undefined&&"AKB74475443".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15633").offset().top-200},500);selectedSku!=null&&"AKB74475443".indexOf(selectedSku)!=-1&&$("#div_15633").css("border-top","2px solid red");assocsitedProducts.push({id:"15633",name:"AKB74475443",stock:"False",price:" 140,000 تومان",sku:"AKB74475443"});console.log(countt,"countt");getProductDetail("15634");console.log("AKB74475443IR_selected:"+selectedSku,"AKB74475443IR".indexOf(selectedSku));$("#div_15633").offset()!==undefined&&"AKB74475443IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15633").offset().top-200},500);selectedSku!=null&&"AKB74475443IR".indexOf(selectedSku)!=-1&&$("#div_15633").css("border-top","2px solid red");p="AKB74475443";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15633][value='2']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15635");console.log("AKB74475450_selected:"+selectedSku,"AKB74475450".indexOf(selectedSku));$("#div_15635").offset()!==undefined&&"AKB74475450".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15635").offset().top-200},500);selectedSku!=null&&"AKB74475450".indexOf(selectedSku)!=-1&&$("#div_15635").css("border-top","2px solid red");assocsitedProducts.push({id:"15635",name:"AKB74475450",stock:"False",price:" 140,000 تومان",sku:"AKB74475450"});console.log(countt,"countt");getProductDetail("15636");console.log("AKB74475450IR_selected:"+selectedSku,"AKB74475450IR".indexOf(selectedSku));$("#div_15635").offset()!==undefined&&"AKB74475450IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15635").offset().top-200},500);selectedSku!=null&&"AKB74475450IR".indexOf(selectedSku)!=-1&&$("#div_15635").css("border-top","2px solid red");p="AKB74475450";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15635][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15637");console.log("AKB74475451_selected:"+selectedSku,"AKB74475451".indexOf(selectedSku));$("#div_15637").offset()!==undefined&&"AKB74475451".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15637").offset().top-200},500);selectedSku!=null&&"AKB74475451".indexOf(selectedSku)!=-1&&$("#div_15637").css("border-top","2px solid red");assocsitedProducts.push({id:"15637",name:"AKB74475451",stock:"False",price:" 140,000 تومان",sku:"AKB74475451"});console.log(countt,"countt");getProductDetail("15638");console.log("AKB74475451IR_selected:"+selectedSku,"AKB74475451IR".indexOf(selectedSku));$("#div_15637").offset()!==undefined&&"AKB74475451IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15637").offset().top-200},500);selectedSku!=null&&"AKB74475451IR".indexOf(selectedSku)!=-1&&$("#div_15637").css("border-top","2px solid red");p="AKB74475451";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15637][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15639");console.log("AKB74475480_selected:"+selectedSku,"AKB74475480".indexOf(selectedSku));$("#div_15639").offset()!==undefined&&"AKB74475480".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15639").offset().top-200},500);selectedSku!=null&&"AKB74475480".indexOf(selectedSku)!=-1&&$("#div_15639").css("border-top","2px solid red");assocsitedProducts.push({id:"15639",name:"AKB74475480",stock:"False",price:" 140,000 تومان",sku:"AKB74475480"});console.log(countt,"countt");getProductDetail("15640");console.log("AKB74475480IR_selected:"+selectedSku,"AKB74475480IR".indexOf(selectedSku));$("#div_15639").offset()!==undefined&&"AKB74475480IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15639").offset().top-200},500);selectedSku!=null&&"AKB74475480IR".indexOf(selectedSku)!=-1&&$("#div_15639").css("border-top","2px solid red");p="AKB74475480";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15639][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15641");console.log("AKB74475490_selected:"+selectedSku,"AKB74475490".indexOf(selectedSku));$("#div_15641").offset()!==undefined&&"AKB74475490".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15641").offset().top-200},500);selectedSku!=null&&"AKB74475490".indexOf(selectedSku)!=-1&&$("#div_15641").css("border-top","2px solid red");assocsitedProducts.push({id:"15641",name:"AKB74475490",stock:"False",price:" 140,000 تومان",sku:"AKB74475490"});console.log(countt,"countt");getProductDetail("15642");console.log("AKB74475490IR_selected:"+selectedSku,"AKB74475490IR".indexOf(selectedSku));$("#div_15641").offset()!==undefined&&"AKB74475490IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15641").offset().top-200},500);selectedSku!=null&&"AKB74475490IR".indexOf(selectedSku)!=-1&&$("#div_15641").css("border-top","2px solid red");p="AKB74475490";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15641][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15643");console.log("AKB74595407_selected:"+selectedSku,"AKB74595407".indexOf(selectedSku));$("#div_15643").offset()!==undefined&&"AKB74595407".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15643").offset().top-200},500);selectedSku!=null&&"AKB74595407".indexOf(selectedSku)!=-1&&$("#div_15643").css("border-top","2px solid red");assocsitedProducts.push({id:"15643",name:"AKB74595407",stock:"False",price:" 180,000 تومان",sku:"AKB74595407"});console.log(countt,"countt");getProductDetail("15644");console.log("AKB74595407IR_selected:"+selectedSku,"AKB74595407IR".indexOf(selectedSku));$("#div_15643").offset()!==undefined&&"AKB74595407IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15643").offset().top-200},500);selectedSku!=null&&"AKB74595407IR".indexOf(selectedSku)!=-1&&$("#div_15643").css("border-top","2px solid red");p="AKB74595407";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15643][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15645");console.log("AKB74915311_selected:"+selectedSku,"AKB74915311".indexOf(selectedSku));$("#div_15645").offset()!==undefined&&"AKB74915311".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15645").offset().top-200},500);selectedSku!=null&&"AKB74915311".indexOf(selectedSku)!=-1&&$("#div_15645").css("border-top","2px solid red");assocsitedProducts.push({id:"15645",name:"AKB74915311",stock:"False",price:" 140,000 تومان",sku:"AKB74915311"});console.log(countt,"countt");getProductDetail("15646");console.log("AKB74915311IR_selected:"+selectedSku,"AKB74915311IR".indexOf(selectedSku));$("#div_15645").offset()!==undefined&&"AKB74915311IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15645").offset().top-200},500);selectedSku!=null&&"AKB74915311IR".indexOf(selectedSku)!=-1&&$("#div_15645").css("border-top","2px solid red");p="AKB74915311";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15645][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15647");console.log("AKB74915342_selected:"+selectedSku,"AKB74915342".indexOf(selectedSku));$("#div_15647").offset()!==undefined&&"AKB74915342".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15647").offset().top-200},500);selectedSku!=null&&"AKB74915342".indexOf(selectedSku)!=-1&&$("#div_15647").css("border-top","2px solid red");assocsitedProducts.push({id:"15647",name:"AKB74915342",stock:"False",price:" 140,000 تومان",sku:"AKB74915342"});console.log(countt,"countt");getProductDetail("15648");console.log("AKB74915342IR_selected:"+selectedSku,"AKB74915342IR".indexOf(selectedSku));$("#div_15647").offset()!==undefined&&"AKB74915342IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15647").offset().top-200},500);selectedSku!=null&&"AKB74915342IR".indexOf(selectedSku)!=-1&&$("#div_15647").css("border-top","2px solid red");p="AKB74915342";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15647][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15649");console.log("AKB74915354_selected:"+selectedSku,"AKB74915354".indexOf(selectedSku));$("#div_15649").offset()!==undefined&&"AKB74915354".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15649").offset().top-200},500);selectedSku!=null&&"AKB74915354".indexOf(selectedSku)!=-1&&$("#div_15649").css("border-top","2px solid red");assocsitedProducts.push({id:"15649",name:"AKB74915354",stock:"False",price:" 140,000 تومان",sku:"AKB74915354"});console.log(countt,"countt");getProductDetail("15650");console.log("AKB74915354IR_selected:"+selectedSku,"AKB74915354IR".indexOf(selectedSku));$("#div_15649").offset()!==undefined&&"AKB74915354IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15649").offset().top-200},500);selectedSku!=null&&"AKB74915354IR".indexOf(selectedSku)!=-1&&$("#div_15649").css("border-top","2px solid red");p="AKB74915354";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15649][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15651");console.log("AKB75095304_selected:"+selectedSku,"AKB75095304".indexOf(selectedSku));$("#div_15651").offset()!==undefined&&"AKB75095304".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15651").offset().top-200},500);selectedSku!=null&&"AKB75095304".indexOf(selectedSku)!=-1&&$("#div_15651").css("border-top","2px solid red");assocsitedProducts.push({id:"15651",name:"AKB75095304",stock:"False",price:" 140,000 تومان",sku:"AKB75095304"});console.log(countt,"countt");getProductDetail("15652");console.log("AKB75095304IR_selected:"+selectedSku,"AKB75095304IR".indexOf(selectedSku));$("#div_15651").offset()!==undefined&&"AKB75095304IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15651").offset().top-200},500);selectedSku!=null&&"AKB75095304IR".indexOf(selectedSku)!=-1&&$("#div_15651").css("border-top","2px solid red");p="AKB75095304";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15651][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15653");console.log("AKB75375608_selected:"+selectedSku,"AKB75375608".indexOf(selectedSku));$("#div_15653").offset()!==undefined&&"AKB75375608".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15653").offset().top-200},500);selectedSku!=null&&"AKB75375608".indexOf(selectedSku)!=-1&&$("#div_15653").css("border-top","2px solid red");assocsitedProducts.push({id:"15653",name:"AKB75375608",stock:"False",price:" 140,000 تومان",sku:"AKB75375608"});console.log(countt,"countt");getProductDetail("15654");console.log("AKB75375608IR_selected:"+selectedSku,"AKB75375608IR".indexOf(selectedSku));$("#div_15653").offset()!==undefined&&"AKB75375608IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15653").offset().top-200},500);selectedSku!=null&&"AKB75375608IR".indexOf(selectedSku)!=-1&&$("#div_15653").css("border-top","2px solid red");p="AKB75375608";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15653][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15655");console.log("AKB75375609_selected:"+selectedSku,"AKB75375609".indexOf(selectedSku));$("#div_15655").offset()!==undefined&&"AKB75375609".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15655").offset().top-200},500);selectedSku!=null&&"AKB75375609".indexOf(selectedSku)!=-1&&$("#div_15655").css("border-top","2px solid red");assocsitedProducts.push({id:"15655",name:"AKB75375609",stock:"False",price:" 140,000 تومان",sku:"AKB75375609"});console.log(countt,"countt");getProductDetail("15656");console.log("AKB75375609IR_selected:"+selectedSku,"AKB75375609IR".indexOf(selectedSku));$("#div_15655").offset()!==undefined&&"AKB75375609IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15655").offset().top-200},500);selectedSku!=null&&"AKB75375609IR".indexOf(selectedSku)!=-1&&$("#div_15655").css("border-top","2px solid red");p="AKB75375609";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15655][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15657");console.log("AKB75675302_selected:"+selectedSku,"AKB75675302".indexOf(selectedSku));$("#div_15657").offset()!==undefined&&"AKB75675302".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15657").offset().top-200},500);selectedSku!=null&&"AKB75675302".indexOf(selectedSku)!=-1&&$("#div_15657").css("border-top","2px solid red");assocsitedProducts.push({id:"15657",name:"AKB75675302",stock:"False",price:" 140,000 تومان",sku:"AKB75675302"});console.log(countt,"countt");getProductDetail("15658");console.log("AKB75675302IR_selected:"+selectedSku,"AKB75675302IR".indexOf(selectedSku));$("#div_15657").offset()!==undefined&&"AKB75675302IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15657").offset().top-200},500);selectedSku!=null&&"AKB75675302IR".indexOf(selectedSku)!=-1&&$("#div_15657").css("border-top","2px solid red");p="AKB75675302";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15657][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15659");console.log("AKBTVLGC03D_selected:"+selectedSku,"AKBTVLGC03D".indexOf(selectedSku));$("#div_15659").offset()!==undefined&&"AKBTVLGC03D".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15659").offset().top-200},500);selectedSku!=null&&"AKBTVLGC03D".indexOf(selectedSku)!=-1&&$("#div_15659").css("border-top","2px solid red");assocsitedProducts.push({id:"15659",name:"AKBTVLGC03D",stock:"False",price:" 100,000 تومان",sku:"AKBTVLGC03D"});console.log(countt,"countt");getProductDetail("15660");console.log("AKBTVNO0001_selected:"+selectedSku,"AKBTVNO0001".indexOf(selectedSku));$("#div_15660").offset()!==undefined&&"AKBTVNO0001".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15660").offset().top-200},500);selectedSku!=null&&"AKBTVNO0001".indexOf(selectedSku)!=-1&&$("#div_15660").css("border-top","2px solid red");assocsitedProducts.push({id:"15660",name:"AKBTVNO0001",stock:"True",price:" 100,000 تومان",sku:"AKBTVNO0001"});$("input[name=radio-15660][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15661");console.log("AKBTVORG001_selected:"+selectedSku,"AKBTVORG001".indexOf(selectedSku));$("#div_15661").offset()!==undefined&&"AKBTVORG001".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15661").offset().top-200},500);selectedSku!=null&&"AKBTVORG001".indexOf(selectedSku)!=-1&&$("#div_15661").css("border-top","2px solid red");assocsitedProducts.push({id:"15661",name:"AKBTVORG001",stock:"False",price:" 120,000 تومان",sku:"AKBTVORG001"});console.log(countt,"countt");getProductDetail("15662");console.log("AKBTVORG001IR_selected:"+selectedSku,"AKBTVORG001IR".indexOf(selectedSku));$("#div_15661").offset()!==undefined&&"AKBTVORG001IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15661").offset().top-200},500);selectedSku!=null&&"AKBTVORG001IR".indexOf(selectedSku)!=-1&&$("#div_15661").css("border-top","2px solid red");p="AKBTVORG001";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15661][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("20939");console.log("MKJ40653806_selected:"+selectedSku,"MKJ40653806".indexOf(selectedSku));$("#div_20939").offset()!==undefined&&"MKJ40653806".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_20939").offset().top-200},500);selectedSku!=null&&"MKJ40653806".indexOf(selectedSku)!=-1&&$("#div_20939").css("border-top","2px solid red");assocsitedProducts.push({id:"20939",name:"MKJ40653806",stock:"False",price:" 150,000 تومان",sku:"MKJ40653806"});console.log(countt,"countt");getProductDetail("20940");console.log("MKJ40653806IR_selected:"+selectedSku,"MKJ40653806IR".indexOf(selectedSku));$("#div_20939").offset()!==undefined&&"MKJ40653806IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_20939").offset().top-200},500);selectedSku!=null&&"MKJ40653806IR".indexOf(selectedSku)!=-1&&$("#div_20939").css("border-top","2px solid red");p="MKJ40653806";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-20939][value='2']").prop("checked",!0);$(function(){$(".hizoom").on("click",function(){let n=$(this).find("img").attr("src");$("#myModalBody").children().remove();$("#myModalBody").append('');var t=new bootstrap.Modal(document.getElementById("exampleModal"),{keyboard:!1});t.show()})})
| |