"+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="38";i=1;stockProducts.push({id:"15670",name:"کنترل هوشمند ال جی M4",stock:"True",price:" 780,000 تومان",sku:"AKB73596507"});stockProducts.push({id:"15671",name:"کنترل هوشمند ال جی M4",stock:"True",price:" 390,000 تومان",sku:"AKB73596507IR"});stockProducts.push({id:"15672",name:"کنترل هوشمند ال جی AN-MR3005",stock:"True",price:" 780,000 تومان",sku:"AKB73636607"});stockProducts.push({id:"15673",name:"کنترل هوشمند ال جی AN-MR3005",stock:"False",price:" 390,000 تومان",sku:"AKB73636607IR"});stockProducts.push({id:"15674",name:"کنترل هوشمند ال جی MR13",stock:"False",price:" 780,000 تومان",sku:"AKB73757502"});stockProducts.push({id:"15675",name:"کنترل هوشمند ال جی MR13",stock:"False",price:" 390,000 تومان",sku:"AKB73757502IR"});stockProducts.push({id:"15676",name:"کنترل هوشمند ال جی AN-MR400G",stock:"False",price:" 780,000 تومان",sku:"AKB73775907"});stockProducts.push({id:"15677",name:"کنترل هوشمند ال جی AN-MR400G",stock:"False",price:" 390,000 تومان",sku:"AKB73775907IR"});stockProducts.push({id:"15678",name:"کنترل هوشمند ال جی M4",stock:"True",price:" 780,000 تومان",sku:"AKB73795401"});stockProducts.push({id:"15679",name:"کنترل هوشمند ال جی MR14",stock:"False",price:" 900,000 تومان",sku:"AKB73975806"});stockProducts.push({id:"15680",name:"کنترل هوشمند ال جی MR14",stock:"False",price:" 390,000 تومان",sku:"AKB73975806IR"});stockProducts.push({id:"15681",name:"کنترل هوشمند ال جی MR14",stock:"False",price:" 780,000 تومان",sku:"AKB73975906"});stockProducts.push({id:"15682",name:"کنترل هوشمند ال جی MR14",stock:"False",price:" 390,000 تومان",sku:"AKB73975906IR"});stockProducts.push({id:"15683",name:"کنترل هوشمند ال جی AN-MR600",stock:"False",price:" 1,600,000 تومان",sku:"AKB74495301"});stockProducts.push({id:"15684",name:"کنترل هوشمند ال جی AN-MR600",stock:"False",price:" 390,000 تومان",sku:"AKB74495301IR"});stockProducts.push({id:"15685",name:"کنترل هوشمند ال جی AN-MR600",stock:"False",price:" 780,000 تومان",sku:"AKB74495316"});stockProducts.push({id:"15686",name:"کنترل هوشمند ال جی AN-MR600",stock:"False",price:" 1,200,000 تومان",sku:"AKB74495316IR"});stockProducts.push({id:"15687",name:"کنترل هوشمند ال جی AN-MR650A",stock:"False",price:" 1,500,000 تومان",sku:"AKB74855401"});stockProducts.push({id:"15688",name:"کنترل هوشمند ال جی AN-MR650",stock:"False",price:" 750,000 تومان",sku:"AKB74855401IR"});stockProducts.push({id:"15689",name:"کنترل هوشمند ال جی AN-MR650",stock:"False",price:" 1,950,000 تومان",sku:"AKB74896201"});stockProducts.push({id:"15690",name:"کنترل هوشمند ال جی AN-MR650",stock:"False",price:" 1,000,000 تومان",sku:"AKB74896201IR"});stockProducts.push({id:"15691",name:"کنترل هوشمند ال جی AN-MR650",stock:"False",price:" 1,750,000 تومان",sku:"AKB74896401"});stockProducts.push({id:"15692",name:"کنترل هوشمند ال جی AN-MR650",stock:"False",price:" 490,000 تومان",sku:"AKB74896401IR"});stockProducts.push({id:"15693",name:"کنترل هوشمند ال جی AN-MR18BA",stock:"False",price:" 780,000 تومان",sku:"AKB75375501"});stockProducts.push({id:"15694",name:"کنترل هوشمند ال جی AN-MR18BA",stock:"True",price:" 1,700,000 تومان",sku:"AKB75375501IR"});stockProducts.push({id:"15695",name:"کنترل هوشمند ال جی AN-MR19BA",stock:"False",price:" 780,000 تومان",sku:"AKB75635305"});stockProducts.push({id:"15696",name:"کنترل هوشمند ال جی AN-MR19BA",stock:"False",price:" 390,000 تومان",sku:"AKB75635305IR"});stockProducts.push({id:"15697",name:"کنترل هوشمند ال جی LW",stock:"True",price:" 300,000 تومان",sku:"EBX61468408"});stockProducts.push({id:"15698",name:"کنترل هوشمند ال جی LW",stock:"True",price:" 140,000 تومان",sku:"EBX61468408IR"});stockProducts.push({id:"15699",name:"کنترل هوشمند ال جی AN-MR500G",stock:"False",price:" 890,000 تومان",sku:"MBM63935937"});stockProducts.push({id:"15700",name:"کنترل هوشمند ال جی AN-MR500G",stock:"False",price:" 450,000 تومان",sku:"MBM63935937IR"});stockProducts.push({id:"16912",name:"کنترل هوشمند ال جی AN-MR400P",stock:"False",price:" 780,000 تومان",sku:"AKB73776201"});stockProducts.push({id:"19278",name:"کنترل هوشمند الجی AN-MR700",stock:"False",price:" 1,200,000 تومان",sku:"AKB75455601"});stockProducts.push({id:"19279",name:"کنترل هوشمند الجی AN-MR700",stock:"False",price:" 590,000 تومان",sku:"AKB75455601IR"});stockProducts.push({id:"24225",name:"کنترل هوشمند ال جی AN-MR21GA",stock:"False",price:" 950,000 تومان",sku:"AKB76036201"});stockProducts.push({id:"24226",name:"کنترل هوشمند ال جی AN-MR21GA",stock:"False",price:" 470,000 تومان",sku:"AKB76036201IR"});stockProducts.push({id:"24380",name:"کنترل هوشمند ال جی MR20GA",stock:"False",price:" 1,580,000 تومان",sku:"AKB75855501"});stockProducts.push({id:"24381",name:"کنترل هوشمند ال جی MR20GA",stock:"False",price:" 2,000,000 تومان",sku:"AKB75855501IR"});console.log(countt,"countt");getProductDetail("15670");console.log("AKB73596507_selected:"+selectedSku,"AKB73596507".indexOf(selectedSku));$("#div_15670").offset()!==undefined&&"AKB73596507".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15670").offset().top-200},500);selectedSku!=null&&"AKB73596507".indexOf(selectedSku)!=-1&&$("#div_15670").css("border-top","2px solid red");assocsitedProducts.push({id:"15670",name:"کنترل هوشمند ال جی M4",stock:"True",price:" 780,000 تومان",sku:"AKB73596507"});$("input[name=radio-15670][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15671");console.log("AKB73596507IR_selected:"+selectedSku,"AKB73596507IR".indexOf(selectedSku));$("#div_15670").offset()!==undefined&&"AKB73596507IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15670").offset().top-200},500);selectedSku!=null&&"AKB73596507IR".indexOf(selectedSku)!=-1&&$("#div_15670").css("border-top","2px solid red");p="AKB73596507";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15670][value='2']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15672");console.log("AKB73636607_selected:"+selectedSku,"AKB73636607".indexOf(selectedSku));$("#div_15672").offset()!==undefined&&"AKB73636607".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15672").offset().top-200},500);selectedSku!=null&&"AKB73636607".indexOf(selectedSku)!=-1&&$("#div_15672").css("border-top","2px solid red");assocsitedProducts.push({id:"15672",name:"کنترل هوشمند ال جی AN-MR3005",stock:"True",price:" 780,000 تومان",sku:"AKB73636607"});$("input[name=radio-15672][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15673");console.log("AKB73636607IR_selected:"+selectedSku,"AKB73636607IR".indexOf(selectedSku));$("#div_15672").offset()!==undefined&&"AKB73636607IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15672").offset().top-200},500);selectedSku!=null&&"AKB73636607IR".indexOf(selectedSku)!=-1&&$("#div_15672").css("border-top","2px solid red");p="AKB73636607";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15672][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15674");console.log("AKB73757502_selected:"+selectedSku,"AKB73757502".indexOf(selectedSku));$("#div_15674").offset()!==undefined&&"AKB73757502".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15674").offset().top-200},500);selectedSku!=null&&"AKB73757502".indexOf(selectedSku)!=-1&&$("#div_15674").css("border-top","2px solid red");assocsitedProducts.push({id:"15674",name:"کنترل هوشمند ال جی MR13",stock:"False",price:" 780,000 تومان",sku:"AKB73757502"});console.log(countt,"countt");getProductDetail("15675");console.log("AKB73757502IR_selected:"+selectedSku,"AKB73757502IR".indexOf(selectedSku));$("#div_15674").offset()!==undefined&&"AKB73757502IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15674").offset().top-200},500);selectedSku!=null&&"AKB73757502IR".indexOf(selectedSku)!=-1&&$("#div_15674").css("border-top","2px solid red");p="AKB73757502";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15674][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15676");console.log("AKB73775907_selected:"+selectedSku,"AKB73775907".indexOf(selectedSku));$("#div_15676").offset()!==undefined&&"AKB73775907".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15676").offset().top-200},500);selectedSku!=null&&"AKB73775907".indexOf(selectedSku)!=-1&&$("#div_15676").css("border-top","2px solid red");assocsitedProducts.push({id:"15676",name:"کنترل هوشمند ال جی AN-MR400G",stock:"False",price:" 780,000 تومان",sku:"AKB73775907"});console.log(countt,"countt");getProductDetail("15677");console.log("AKB73775907IR_selected:"+selectedSku,"AKB73775907IR".indexOf(selectedSku));$("#div_15676").offset()!==undefined&&"AKB73775907IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15676").offset().top-200},500);selectedSku!=null&&"AKB73775907IR".indexOf(selectedSku)!=-1&&$("#div_15676").css("border-top","2px solid red");p="AKB73775907";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15676][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15678");console.log("AKB73795401_selected:"+selectedSku,"AKB73795401".indexOf(selectedSku));$("#div_15678").offset()!==undefined&&"AKB73795401".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15678").offset().top-200},500);selectedSku!=null&&"AKB73795401".indexOf(selectedSku)!=-1&&$("#div_15678").css("border-top","2px solid red");assocsitedProducts.push({id:"15678",name:"کنترل هوشمند ال جی M4",stock:"True",price:" 780,000 تومان",sku:"AKB73795401"});$("input[name=radio-15678][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15679");console.log("AKB73975806_selected:"+selectedSku,"AKB73975806".indexOf(selectedSku));$("#div_15679").offset()!==undefined&&"AKB73975806".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15679").offset().top-200},500);selectedSku!=null&&"AKB73975806".indexOf(selectedSku)!=-1&&$("#div_15679").css("border-top","2px solid red");assocsitedProducts.push({id:"15679",name:"کنترل هوشمند ال جی MR14",stock:"False",price:" 900,000 تومان",sku:"AKB73975806"});console.log(countt,"countt");getProductDetail("15680");console.log("AKB73975806IR_selected:"+selectedSku,"AKB73975806IR".indexOf(selectedSku));$("#div_15679").offset()!==undefined&&"AKB73975806IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15679").offset().top-200},500);selectedSku!=null&&"AKB73975806IR".indexOf(selectedSku)!=-1&&$("#div_15679").css("border-top","2px solid red");p="AKB73975806";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15679][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15681");console.log("AKB73975906_selected:"+selectedSku,"AKB73975906".indexOf(selectedSku));$("#div_15681").offset()!==undefined&&"AKB73975906".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15681").offset().top-200},500);selectedSku!=null&&"AKB73975906".indexOf(selectedSku)!=-1&&$("#div_15681").css("border-top","2px solid red");assocsitedProducts.push({id:"15681",name:"کنترل هوشمند ال جی MR14",stock:"False",price:" 780,000 تومان",sku:"AKB73975906"});console.log(countt,"countt");getProductDetail("15682");console.log("AKB73975906IR_selected:"+selectedSku,"AKB73975906IR".indexOf(selectedSku));$("#div_15681").offset()!==undefined&&"AKB73975906IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15681").offset().top-200},500);selectedSku!=null&&"AKB73975906IR".indexOf(selectedSku)!=-1&&$("#div_15681").css("border-top","2px solid red");p="AKB73975906";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15681][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15683");console.log("AKB74495301_selected:"+selectedSku,"AKB74495301".indexOf(selectedSku));$("#div_15683").offset()!==undefined&&"AKB74495301".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15683").offset().top-200},500);selectedSku!=null&&"AKB74495301".indexOf(selectedSku)!=-1&&$("#div_15683").css("border-top","2px solid red");assocsitedProducts.push({id:"15683",name:"کنترل هوشمند ال جی AN-MR600",stock:"False",price:" 1,600,000 تومان",sku:"AKB74495301"});console.log(countt,"countt");getProductDetail("15684");console.log("AKB74495301IR_selected:"+selectedSku,"AKB74495301IR".indexOf(selectedSku));$("#div_15683").offset()!==undefined&&"AKB74495301IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15683").offset().top-200},500);selectedSku!=null&&"AKB74495301IR".indexOf(selectedSku)!=-1&&$("#div_15683").css("border-top","2px solid red");p="AKB74495301";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15683][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15685");console.log("AKB74495316_selected:"+selectedSku,"AKB74495316".indexOf(selectedSku));$("#div_15685").offset()!==undefined&&"AKB74495316".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15685").offset().top-200},500);selectedSku!=null&&"AKB74495316".indexOf(selectedSku)!=-1&&$("#div_15685").css("border-top","2px solid red");assocsitedProducts.push({id:"15685",name:"کنترل هوشمند ال جی AN-MR600",stock:"False",price:" 780,000 تومان",sku:"AKB74495316"});console.log(countt,"countt");getProductDetail("15686");console.log("AKB74495316IR_selected:"+selectedSku,"AKB74495316IR".indexOf(selectedSku));$("#div_15685").offset()!==undefined&&"AKB74495316IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15685").offset().top-200},500);selectedSku!=null&&"AKB74495316IR".indexOf(selectedSku)!=-1&&$("#div_15685").css("border-top","2px solid red");p="AKB74495316";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15685][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15687");console.log("AKB74855401_selected:"+selectedSku,"AKB74855401".indexOf(selectedSku));$("#div_15687").offset()!==undefined&&"AKB74855401".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15687").offset().top-200},500);selectedSku!=null&&"AKB74855401".indexOf(selectedSku)!=-1&&$("#div_15687").css("border-top","2px solid red");assocsitedProducts.push({id:"15687",name:"کنترل هوشمند ال جی AN-MR650A",stock:"False",price:" 1,500,000 تومان",sku:"AKB74855401"});console.log(countt,"countt");getProductDetail("15688");console.log("AKB74855401IR_selected:"+selectedSku,"AKB74855401IR".indexOf(selectedSku));$("#div_15687").offset()!==undefined&&"AKB74855401IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15687").offset().top-200},500);selectedSku!=null&&"AKB74855401IR".indexOf(selectedSku)!=-1&&$("#div_15687").css("border-top","2px solid red");p="AKB74855401";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15687][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15689");console.log("AKB74896201_selected:"+selectedSku,"AKB74896201".indexOf(selectedSku));$("#div_15689").offset()!==undefined&&"AKB74896201".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15689").offset().top-200},500);selectedSku!=null&&"AKB74896201".indexOf(selectedSku)!=-1&&$("#div_15689").css("border-top","2px solid red");assocsitedProducts.push({id:"15689",name:"کنترل هوشمند ال جی AN-MR650",stock:"False",price:" 1,950,000 تومان",sku:"AKB74896201"});console.log(countt,"countt");getProductDetail("15690");console.log("AKB74896201IR_selected:"+selectedSku,"AKB74896201IR".indexOf(selectedSku));$("#div_15689").offset()!==undefined&&"AKB74896201IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15689").offset().top-200},500);selectedSku!=null&&"AKB74896201IR".indexOf(selectedSku)!=-1&&$("#div_15689").css("border-top","2px solid red");p="AKB74896201";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15689][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15691");console.log("AKB74896401_selected:"+selectedSku,"AKB74896401".indexOf(selectedSku));$("#div_15691").offset()!==undefined&&"AKB74896401".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15691").offset().top-200},500);selectedSku!=null&&"AKB74896401".indexOf(selectedSku)!=-1&&$("#div_15691").css("border-top","2px solid red");assocsitedProducts.push({id:"15691",name:"کنترل هوشمند ال جی AN-MR650",stock:"False",price:" 1,750,000 تومان",sku:"AKB74896401"});console.log(countt,"countt");getProductDetail("15692");console.log("AKB74896401IR_selected:"+selectedSku,"AKB74896401IR".indexOf(selectedSku));$("#div_15691").offset()!==undefined&&"AKB74896401IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15691").offset().top-200},500);selectedSku!=null&&"AKB74896401IR".indexOf(selectedSku)!=-1&&$("#div_15691").css("border-top","2px solid red");p="AKB74896401";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15691][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15693");console.log("AKB75375501_selected:"+selectedSku,"AKB75375501".indexOf(selectedSku));$("#div_15693").offset()!==undefined&&"AKB75375501".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15693").offset().top-200},500);selectedSku!=null&&"AKB75375501".indexOf(selectedSku)!=-1&&$("#div_15693").css("border-top","2px solid red");assocsitedProducts.push({id:"15693",name:"کنترل هوشمند ال جی AN-MR18BA",stock:"False",price:" 780,000 تومان",sku:"AKB75375501"});console.log(countt,"countt");getProductDetail("15694");console.log("AKB75375501IR_selected:"+selectedSku,"AKB75375501IR".indexOf(selectedSku));$("#div_15693").offset()!==undefined&&"AKB75375501IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15693").offset().top-200},500);selectedSku!=null&&"AKB75375501IR".indexOf(selectedSku)!=-1&&$("#div_15693").css("border-top","2px solid red");p="AKB75375501";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15693][value='2']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15695");console.log("AKB75635305_selected:"+selectedSku,"AKB75635305".indexOf(selectedSku));$("#div_15695").offset()!==undefined&&"AKB75635305".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15695").offset().top-200},500);selectedSku!=null&&"AKB75635305".indexOf(selectedSku)!=-1&&$("#div_15695").css("border-top","2px solid red");assocsitedProducts.push({id:"15695",name:"کنترل هوشمند ال جی AN-MR19BA",stock:"False",price:" 780,000 تومان",sku:"AKB75635305"});console.log(countt,"countt");getProductDetail("15696");console.log("AKB75635305IR_selected:"+selectedSku,"AKB75635305IR".indexOf(selectedSku));$("#div_15695").offset()!==undefined&&"AKB75635305IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15695").offset().top-200},500);selectedSku!=null&&"AKB75635305IR".indexOf(selectedSku)!=-1&&$("#div_15695").css("border-top","2px solid red");p="AKB75635305";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15695][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15697");console.log("EBX61468408_selected:"+selectedSku,"EBX61468408".indexOf(selectedSku));$("#div_15697").offset()!==undefined&&"EBX61468408".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15697").offset().top-200},500);selectedSku!=null&&"EBX61468408".indexOf(selectedSku)!=-1&&$("#div_15697").css("border-top","2px solid red");assocsitedProducts.push({id:"15697",name:"کنترل هوشمند ال جی LW",stock:"True",price:" 300,000 تومان",sku:"EBX61468408"});$("input[name=radio-15697][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15698");console.log("EBX61468408IR_selected:"+selectedSku,"EBX61468408IR".indexOf(selectedSku));$("#div_15697").offset()!==undefined&&"EBX61468408IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15697").offset().top-200},500);selectedSku!=null&&"EBX61468408IR".indexOf(selectedSku)!=-1&&$("#div_15697").css("border-top","2px solid red");p="EBX61468408";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15697][value='2']").prop("checked",!0);console.log(countt,"countt");getProductDetail("15699");console.log("MBM63935937_selected:"+selectedSku,"MBM63935937".indexOf(selectedSku));$("#div_15699").offset()!==undefined&&"MBM63935937".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15699").offset().top-200},500);selectedSku!=null&&"MBM63935937".indexOf(selectedSku)!=-1&&$("#div_15699").css("border-top","2px solid red");assocsitedProducts.push({id:"15699",name:"کنترل هوشمند ال جی AN-MR500G",stock:"False",price:" 890,000 تومان",sku:"MBM63935937"});console.log(countt,"countt");getProductDetail("15700");console.log("MBM63935937IR_selected:"+selectedSku,"MBM63935937IR".indexOf(selectedSku));$("#div_15699").offset()!==undefined&&"MBM63935937IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_15699").offset().top-200},500);selectedSku!=null&&"MBM63935937IR".indexOf(selectedSku)!=-1&&$("#div_15699").css("border-top","2px solid red");p="MBM63935937";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-15699][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("16912");console.log("AKB73776201_selected:"+selectedSku,"AKB73776201".indexOf(selectedSku));$("#div_16912").offset()!==undefined&&"AKB73776201".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_16912").offset().top-200},500);selectedSku!=null&&"AKB73776201".indexOf(selectedSku)!=-1&&$("#div_16912").css("border-top","2px solid red");assocsitedProducts.push({id:"16912",name:"کنترل هوشمند ال جی AN-MR400P",stock:"False",price:" 780,000 تومان",sku:"AKB73776201"});console.log(countt,"countt");getProductDetail("19278");console.log("AKB75455601_selected:"+selectedSku,"AKB75455601".indexOf(selectedSku));$("#div_19278").offset()!==undefined&&"AKB75455601".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_19278").offset().top-200},500);selectedSku!=null&&"AKB75455601".indexOf(selectedSku)!=-1&&$("#div_19278").css("border-top","2px solid red");assocsitedProducts.push({id:"19278",name:"کنترل هوشمند الجی AN-MR700",stock:"False",price:" 1,200,000 تومان",sku:"AKB75455601"});console.log(countt,"countt");getProductDetail("19279");console.log("AKB75455601IR_selected:"+selectedSku,"AKB75455601IR".indexOf(selectedSku));$("#div_19278").offset()!==undefined&&"AKB75455601IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_19278").offset().top-200},500);selectedSku!=null&&"AKB75455601IR".indexOf(selectedSku)!=-1&&$("#div_19278").css("border-top","2px solid red");p="AKB75455601";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-19278][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("24225");console.log("AKB76036201_selected:"+selectedSku,"AKB76036201".indexOf(selectedSku));$("#div_24225").offset()!==undefined&&"AKB76036201".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_24225").offset().top-200},500);selectedSku!=null&&"AKB76036201".indexOf(selectedSku)!=-1&&$("#div_24225").css("border-top","2px solid red");assocsitedProducts.push({id:"24225",name:"کنترل هوشمند ال جی AN-MR21GA",stock:"False",price:" 950,000 تومان",sku:"AKB76036201"});console.log(countt,"countt");getProductDetail("24226");console.log("AKB76036201IR_selected:"+selectedSku,"AKB76036201IR".indexOf(selectedSku));$("#div_24225").offset()!==undefined&&"AKB76036201IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_24225").offset().top-200},500);selectedSku!=null&&"AKB76036201IR".indexOf(selectedSku)!=-1&&$("#div_24225").css("border-top","2px solid red");p="AKB76036201";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-24225][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("24380");console.log("AKB75855501_selected:"+selectedSku,"AKB75855501".indexOf(selectedSku));$("#div_24380").offset()!==undefined&&"AKB75855501".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_24380").offset().top-200},500);selectedSku!=null&&"AKB75855501".indexOf(selectedSku)!=-1&&$("#div_24380").css("border-top","2px solid red");assocsitedProducts.push({id:"24380",name:"کنترل هوشمند ال جی MR20GA",stock:"False",price:" 1,580,000 تومان",sku:"AKB75855501"});console.log(countt,"countt");getProductDetail("24381");console.log("AKB75855501IR_selected:"+selectedSku,"AKB75855501IR".indexOf(selectedSku));$("#div_24380").offset()!==undefined&&"AKB75855501IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_24380").offset().top-200},500);selectedSku!=null&&"AKB75855501IR".indexOf(selectedSku)!=-1&&$("#div_24380").css("border-top","2px solid red");p="AKB75855501";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-24380][value='1']").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()})})
| |