"+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="36";i=1;stockProducts.push({id:"26260",name:"21M07-C02",stock:"True",price:" 280,000 تومان",sku:"21M07-C02IR"});stockProducts.push({id:"26261",name:"21M07-C02",stock:"False",price:" 380,000 تومان",sku:"21M07-C02"});stockProducts.push({id:"26280",name:"47_6004362",stock:"True",price:" 580,000 تومان",sku:"47_6004362IR"});stockProducts.push({id:"26281",name:"47_6004362",stock:"False",price:" 780,000 تومان",sku:"47_6004362"});stockProducts.push({id:"26282",name:"47_6004363",stock:"True",price:" 580,000 تومان",sku:"47_6004363IR"});stockProducts.push({id:"26283",name:"47_6004363",stock:"False",price:" 780,000 تومان",sku:"47_6004363"});stockProducts.push({id:"26284",name:"47-6001694",stock:"True",price:" 580,000 تومان",sku:"47-6001694IR"});stockProducts.push({id:"26285",name:"47-6001694",stock:"False",price:" 780,000 تومان",sku:"47-6001694"});stockProducts.push({id:"26306",name:"55T23-S0A",stock:"True",price:" 480,000 تومان",sku:"55T23-S0AIR"});stockProducts.push({id:"26307",name:"55T23-S0A",stock:"False",price:" 680,000 تومان",sku:"55T23-S0A"});stockProducts.push({id:"26308",name:"55T30-S0L",stock:"True",price:" 480,000 تومان",sku:"55T30-S0LIR"});stockProducts.push({id:"26309",name:"55T30-S0L",stock:"False",price:" 680,000 تومان",sku:"55T30-S0L"});stockProducts.push({id:"26310",name:"55T30-S0M",stock:"True",price:" 480,000 تومان",sku:"55T30-S0MIR"});stockProducts.push({id:"26311",name:"55T30-S0M",stock:"False",price:" 680,000 تومان",sku:"55T30-S0M"});stockProducts.push({id:"26312",name:"55T30-S0N",stock:"True",price:" 480,000 تومان",sku:"55T30-S0NIR"});stockProducts.push({id:"26313",name:"55T30-S0N",stock:"False",price:" 680,000 تومان",sku:"55T30-S0N"});stockProducts.push({id:"26332",name:"برد خط کشی 6870S-0796A سمت چپ",stock:"True",price:" 280,000 تومان",sku:"6870S-0796AIR"});stockProducts.push({id:"26333",name:"برد خط کشی 6870S-0796A سمت چپ",stock:"False",price:" 380,000 تومان",sku:"6870S-0796A"});stockProducts.push({id:"26334",name:"برد خط کشی 6870S-0797A سمت راست",stock:"True",price:" 280,000 تومان",sku:"6870S-0797AIR"});stockProducts.push({id:"26335",name:"برد خط کشی 6870S-0797A سمت راست",stock:"False",price:" 380,000 تومان",sku:"6870S-0797A"});stockProducts.push({id:"26336",name:"6870S-1031C",stock:"True",price:" 380,000 تومان",sku:"6870S-1031CIR"});stockProducts.push({id:"26337",name:"6870S-1031C",stock:"False",price:" 480,000 تومان",sku:"6870S-1031C"});stockProducts.push({id:"26338",name:"6870S-1032C",stock:"True",price:" 380,000 تومان",sku:"6870S-1032CIR"});stockProducts.push({id:"26339",name:"6870S-1032C",stock:"False",price:" 480,000 تومان",sku:"6870S-1032C"});stockProducts.push({id:"26340",name:"6870S-1120A",stock:"True",price:" 380,000 تومان",sku:"6870S-1120AIR"});stockProducts.push({id:"26341",name:"6870S-1120A",stock:"False",price:" 480,000 تومان",sku:"6870S-1120A"});stockProducts.push({id:"26517",name:"PT430CS03-3-XL-1",stock:"True",price:" 480,000 تومان",sku:"PT430CS03-3-XL-1IR"});stockProducts.push({id:"26518",name:"PT430CS03-3-XL-1",stock:"False",price:" 580,000 تومان",sku:"PT430CS03-3-XL-1"});stockProducts.push({id:"26519",name:"PT430CS03-3-XR-1",stock:"True",price:" 480,000 تومان",sku:"PT430CS03-3-XR-1IR"});stockProducts.push({id:"26520",name:"PT430CS03-3-XR-1",stock:"False",price:" 580,000 تومان",sku:"PT430CS03-3-XR-1"});stockProducts.push({id:"26553",name:"برد خط کشی ST6451D02-E-XRL-A سمت چپ",stock:"True",price:" 680,000 تومان",sku:"ST6451D02-E-XRL-AIR"});stockProducts.push({id:"26554",name:"برد خط کشی ST6451D02-E-XRL-A سمت چپ",stock:"False",price:" 880,000 تومان",sku:"ST6451D02-E-XRL-A"});stockProducts.push({id:"26555",name:"برد خط کشی ST6451D02-E-XRR-9 سمت راست",stock:"True",price:" 680,000 تومان",sku:"ST6451D02-E-XRR-9IR"});stockProducts.push({id:"26556",name:"برد خط کشی ST6451D02-E-XRR-9 سمت راست",stock:"False",price:" 880,000 تومان",sku:"ST6451D02-E-XRR-9"});stockProducts.push({id:"26594",name:"V500DJ7-QE1",stock:"True",price:" تومان",sku:"V500DJ7-QE1IR"});stockProducts.push({id:"26595",name:"V500DJ7-QE1",stock:"False",price:" تومان",sku:"V500DJ7-QE1"});console.log(countt,"countt");getProductDetail("26260");console.log("21M07-C02IR_selected:"+selectedSku,"21M07-C02IR".indexOf(selectedSku));$("#div_26259").offset()!==undefined&&"21M07-C02IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26259").offset().top-200},500);selectedSku!=null&&"21M07-C02IR".indexOf(selectedSku)!=-1&&$("#div_26259").css("border-top","2px solid red");p="21M07-C02";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-26259][value='2']").prop("checked",!0);console.log(countt,"countt");getProductDetail("26261");console.log("21M07-C02_selected:"+selectedSku,"21M07-C02".indexOf(selectedSku));$("#div_26261").offset()!==undefined&&"21M07-C02".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26261").offset().top-200},500);selectedSku!=null&&"21M07-C02".indexOf(selectedSku)!=-1&&$("#div_26261").css("border-top","2px solid red");assocsitedProducts.push({id:"26261",name:"21M07-C02",stock:"False",price:" 380,000 تومان",sku:"21M07-C02"});console.log(countt,"countt");getProductDetail("26280");console.log("47_6004362IR_selected:"+selectedSku,"47_6004362IR".indexOf(selectedSku));$("#div_26279").offset()!==undefined&&"47_6004362IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26279").offset().top-200},500);selectedSku!=null&&"47_6004362IR".indexOf(selectedSku)!=-1&&$("#div_26279").css("border-top","2px solid red");p="47_6004362";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-26279][value='2']").prop("checked",!0);console.log(countt,"countt");getProductDetail("26281");console.log("47_6004362_selected:"+selectedSku,"47_6004362".indexOf(selectedSku));$("#div_26281").offset()!==undefined&&"47_6004362".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26281").offset().top-200},500);selectedSku!=null&&"47_6004362".indexOf(selectedSku)!=-1&&$("#div_26281").css("border-top","2px solid red");assocsitedProducts.push({id:"26281",name:"47_6004362",stock:"False",price:" 780,000 تومان",sku:"47_6004362"});console.log(countt,"countt");getProductDetail("26282");console.log("47_6004363IR_selected:"+selectedSku,"47_6004363IR".indexOf(selectedSku));$("#div_26281").offset()!==undefined&&"47_6004363IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26281").offset().top-200},500);selectedSku!=null&&"47_6004363IR".indexOf(selectedSku)!=-1&&$("#div_26281").css("border-top","2px solid red");p="47_6004363";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-26281][value='2']").prop("checked",!0);console.log(countt,"countt");getProductDetail("26283");console.log("47_6004363_selected:"+selectedSku,"47_6004363".indexOf(selectedSku));$("#div_26283").offset()!==undefined&&"47_6004363".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26283").offset().top-200},500);selectedSku!=null&&"47_6004363".indexOf(selectedSku)!=-1&&$("#div_26283").css("border-top","2px solid red");assocsitedProducts.push({id:"26283",name:"47_6004363",stock:"False",price:" 780,000 تومان",sku:"47_6004363"});console.log(countt,"countt");getProductDetail("26284");console.log("47-6001694IR_selected:"+selectedSku,"47-6001694IR".indexOf(selectedSku));$("#div_26283").offset()!==undefined&&"47-6001694IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26283").offset().top-200},500);selectedSku!=null&&"47-6001694IR".indexOf(selectedSku)!=-1&&$("#div_26283").css("border-top","2px solid red");p="47-6001694";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-26283][value='2']").prop("checked",!0);console.log(countt,"countt");getProductDetail("26285");console.log("47-6001694_selected:"+selectedSku,"47-6001694".indexOf(selectedSku));$("#div_26285").offset()!==undefined&&"47-6001694".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26285").offset().top-200},500);selectedSku!=null&&"47-6001694".indexOf(selectedSku)!=-1&&$("#div_26285").css("border-top","2px solid red");assocsitedProducts.push({id:"26285",name:"47-6001694",stock:"False",price:" 780,000 تومان",sku:"47-6001694"});console.log(countt,"countt");getProductDetail("26306");console.log("55T23-S0AIR_selected:"+selectedSku,"55T23-S0AIR".indexOf(selectedSku));$("#div_26305").offset()!==undefined&&"55T23-S0AIR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26305").offset().top-200},500);selectedSku!=null&&"55T23-S0AIR".indexOf(selectedSku)!=-1&&$("#div_26305").css("border-top","2px solid red");p="55T23-S0A";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-26305][value='2']").prop("checked",!0);console.log(countt,"countt");getProductDetail("26307");console.log("55T23-S0A_selected:"+selectedSku,"55T23-S0A".indexOf(selectedSku));$("#div_26307").offset()!==undefined&&"55T23-S0A".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26307").offset().top-200},500);selectedSku!=null&&"55T23-S0A".indexOf(selectedSku)!=-1&&$("#div_26307").css("border-top","2px solid red");assocsitedProducts.push({id:"26307",name:"55T23-S0A",stock:"False",price:" 680,000 تومان",sku:"55T23-S0A"});console.log(countt,"countt");getProductDetail("26308");console.log("55T30-S0LIR_selected:"+selectedSku,"55T30-S0LIR".indexOf(selectedSku));$("#div_26307").offset()!==undefined&&"55T30-S0LIR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26307").offset().top-200},500);selectedSku!=null&&"55T30-S0LIR".indexOf(selectedSku)!=-1&&$("#div_26307").css("border-top","2px solid red");p="55T30-S0L";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-26307][value='2']").prop("checked",!0);console.log(countt,"countt");getProductDetail("26309");console.log("55T30-S0L_selected:"+selectedSku,"55T30-S0L".indexOf(selectedSku));$("#div_26309").offset()!==undefined&&"55T30-S0L".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26309").offset().top-200},500);selectedSku!=null&&"55T30-S0L".indexOf(selectedSku)!=-1&&$("#div_26309").css("border-top","2px solid red");assocsitedProducts.push({id:"26309",name:"55T30-S0L",stock:"False",price:" 680,000 تومان",sku:"55T30-S0L"});console.log(countt,"countt");getProductDetail("26310");console.log("55T30-S0MIR_selected:"+selectedSku,"55T30-S0MIR".indexOf(selectedSku));$("#div_26309").offset()!==undefined&&"55T30-S0MIR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26309").offset().top-200},500);selectedSku!=null&&"55T30-S0MIR".indexOf(selectedSku)!=-1&&$("#div_26309").css("border-top","2px solid red");p="55T30-S0M";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-26309][value='2']").prop("checked",!0);console.log(countt,"countt");getProductDetail("26311");console.log("55T30-S0M_selected:"+selectedSku,"55T30-S0M".indexOf(selectedSku));$("#div_26311").offset()!==undefined&&"55T30-S0M".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26311").offset().top-200},500);selectedSku!=null&&"55T30-S0M".indexOf(selectedSku)!=-1&&$("#div_26311").css("border-top","2px solid red");assocsitedProducts.push({id:"26311",name:"55T30-S0M",stock:"False",price:" 680,000 تومان",sku:"55T30-S0M"});console.log(countt,"countt");getProductDetail("26312");console.log("55T30-S0NIR_selected:"+selectedSku,"55T30-S0NIR".indexOf(selectedSku));$("#div_26311").offset()!==undefined&&"55T30-S0NIR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26311").offset().top-200},500);selectedSku!=null&&"55T30-S0NIR".indexOf(selectedSku)!=-1&&$("#div_26311").css("border-top","2px solid red");p="55T30-S0N";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-26311][value='2']").prop("checked",!0);console.log(countt,"countt");getProductDetail("26313");console.log("55T30-S0N_selected:"+selectedSku,"55T30-S0N".indexOf(selectedSku));$("#div_26313").offset()!==undefined&&"55T30-S0N".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26313").offset().top-200},500);selectedSku!=null&&"55T30-S0N".indexOf(selectedSku)!=-1&&$("#div_26313").css("border-top","2px solid red");assocsitedProducts.push({id:"26313",name:"55T30-S0N",stock:"False",price:" 680,000 تومان",sku:"55T30-S0N"});console.log(countt,"countt");getProductDetail("26332");console.log("6870S-0796AIR_selected:"+selectedSku,"6870S-0796AIR".indexOf(selectedSku));$("#div_26331").offset()!==undefined&&"6870S-0796AIR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26331").offset().top-200},500);selectedSku!=null&&"6870S-0796AIR".indexOf(selectedSku)!=-1&&$("#div_26331").css("border-top","2px solid red");p="6870S-0796A";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-26331][value='2']").prop("checked",!0);console.log(countt,"countt");getProductDetail("26333");console.log("6870S-0796A_selected:"+selectedSku,"6870S-0796A".indexOf(selectedSku));$("#div_26333").offset()!==undefined&&"6870S-0796A".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26333").offset().top-200},500);selectedSku!=null&&"6870S-0796A".indexOf(selectedSku)!=-1&&$("#div_26333").css("border-top","2px solid red");assocsitedProducts.push({id:"26333",name:"برد خط کشی 6870S-0796A سمت چپ",stock:"False",price:" 380,000 تومان",sku:"6870S-0796A"});console.log(countt,"countt");getProductDetail("26334");console.log("6870S-0797AIR_selected:"+selectedSku,"6870S-0797AIR".indexOf(selectedSku));$("#div_26333").offset()!==undefined&&"6870S-0797AIR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26333").offset().top-200},500);selectedSku!=null&&"6870S-0797AIR".indexOf(selectedSku)!=-1&&$("#div_26333").css("border-top","2px solid red");p="6870S-0797A";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-26333][value='2']").prop("checked",!0);console.log(countt,"countt");getProductDetail("26335");console.log("6870S-0797A_selected:"+selectedSku,"6870S-0797A".indexOf(selectedSku));$("#div_26335").offset()!==undefined&&"6870S-0797A".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26335").offset().top-200},500);selectedSku!=null&&"6870S-0797A".indexOf(selectedSku)!=-1&&$("#div_26335").css("border-top","2px solid red");assocsitedProducts.push({id:"26335",name:"برد خط کشی 6870S-0797A سمت راست",stock:"False",price:" 380,000 تومان",sku:"6870S-0797A"});console.log(countt,"countt");getProductDetail("26336");console.log("6870S-1031CIR_selected:"+selectedSku,"6870S-1031CIR".indexOf(selectedSku));$("#div_26335").offset()!==undefined&&"6870S-1031CIR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26335").offset().top-200},500);selectedSku!=null&&"6870S-1031CIR".indexOf(selectedSku)!=-1&&$("#div_26335").css("border-top","2px solid red");p="6870S-1031C";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-26335][value='2']").prop("checked",!0);console.log(countt,"countt");getProductDetail("26337");console.log("6870S-1031C_selected:"+selectedSku,"6870S-1031C".indexOf(selectedSku));$("#div_26337").offset()!==undefined&&"6870S-1031C".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26337").offset().top-200},500);selectedSku!=null&&"6870S-1031C".indexOf(selectedSku)!=-1&&$("#div_26337").css("border-top","2px solid red");assocsitedProducts.push({id:"26337",name:"6870S-1031C",stock:"False",price:" 480,000 تومان",sku:"6870S-1031C"});console.log(countt,"countt");getProductDetail("26338");console.log("6870S-1032CIR_selected:"+selectedSku,"6870S-1032CIR".indexOf(selectedSku));$("#div_26337").offset()!==undefined&&"6870S-1032CIR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26337").offset().top-200},500);selectedSku!=null&&"6870S-1032CIR".indexOf(selectedSku)!=-1&&$("#div_26337").css("border-top","2px solid red");p="6870S-1032C";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-26337][value='2']").prop("checked",!0);console.log(countt,"countt");getProductDetail("26339");console.log("6870S-1032C_selected:"+selectedSku,"6870S-1032C".indexOf(selectedSku));$("#div_26339").offset()!==undefined&&"6870S-1032C".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26339").offset().top-200},500);selectedSku!=null&&"6870S-1032C".indexOf(selectedSku)!=-1&&$("#div_26339").css("border-top","2px solid red");assocsitedProducts.push({id:"26339",name:"6870S-1032C",stock:"False",price:" 480,000 تومان",sku:"6870S-1032C"});console.log(countt,"countt");getProductDetail("26340");console.log("6870S-1120AIR_selected:"+selectedSku,"6870S-1120AIR".indexOf(selectedSku));$("#div_26339").offset()!==undefined&&"6870S-1120AIR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26339").offset().top-200},500);selectedSku!=null&&"6870S-1120AIR".indexOf(selectedSku)!=-1&&$("#div_26339").css("border-top","2px solid red");p="6870S-1120A";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-26339][value='2']").prop("checked",!0);console.log(countt,"countt");getProductDetail("26341");console.log("6870S-1120A_selected:"+selectedSku,"6870S-1120A".indexOf(selectedSku));$("#div_26341").offset()!==undefined&&"6870S-1120A".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26341").offset().top-200},500);selectedSku!=null&&"6870S-1120A".indexOf(selectedSku)!=-1&&$("#div_26341").css("border-top","2px solid red");assocsitedProducts.push({id:"26341",name:"6870S-1120A",stock:"False",price:" 480,000 تومان",sku:"6870S-1120A"});console.log(countt,"countt");getProductDetail("26517");console.log("PT430CS03-3-XL-1IR_selected:"+selectedSku,"PT430CS03-3-XL-1IR".indexOf(selectedSku));$("#div_26516").offset()!==undefined&&"PT430CS03-3-XL-1IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26516").offset().top-200},500);selectedSku!=null&&"PT430CS03-3-XL-1IR".indexOf(selectedSku)!=-1&&$("#div_26516").css("border-top","2px solid red");p="PT430CS03-3-XL-1";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-26516][value='2']").prop("checked",!0);console.log(countt,"countt");getProductDetail("26518");console.log("PT430CS03-3-XL-1_selected:"+selectedSku,"PT430CS03-3-XL-1".indexOf(selectedSku));$("#div_26518").offset()!==undefined&&"PT430CS03-3-XL-1".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26518").offset().top-200},500);selectedSku!=null&&"PT430CS03-3-XL-1".indexOf(selectedSku)!=-1&&$("#div_26518").css("border-top","2px solid red");assocsitedProducts.push({id:"26518",name:"PT430CS03-3-XL-1",stock:"False",price:" 580,000 تومان",sku:"PT430CS03-3-XL-1"});console.log(countt,"countt");getProductDetail("26519");console.log("PT430CS03-3-XR-1IR_selected:"+selectedSku,"PT430CS03-3-XR-1IR".indexOf(selectedSku));$("#div_26518").offset()!==undefined&&"PT430CS03-3-XR-1IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26518").offset().top-200},500);selectedSku!=null&&"PT430CS03-3-XR-1IR".indexOf(selectedSku)!=-1&&$("#div_26518").css("border-top","2px solid red");p="PT430CS03-3-XR-1";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-26518][value='2']").prop("checked",!0);console.log(countt,"countt");getProductDetail("26520");console.log("PT430CS03-3-XR-1_selected:"+selectedSku,"PT430CS03-3-XR-1".indexOf(selectedSku));$("#div_26520").offset()!==undefined&&"PT430CS03-3-XR-1".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26520").offset().top-200},500);selectedSku!=null&&"PT430CS03-3-XR-1".indexOf(selectedSku)!=-1&&$("#div_26520").css("border-top","2px solid red");assocsitedProducts.push({id:"26520",name:"PT430CS03-3-XR-1",stock:"False",price:" 580,000 تومان",sku:"PT430CS03-3-XR-1"});console.log(countt,"countt");getProductDetail("26553");console.log("ST6451D02-E-XRL-AIR_selected:"+selectedSku,"ST6451D02-E-XRL-AIR".indexOf(selectedSku));$("#div_26552").offset()!==undefined&&"ST6451D02-E-XRL-AIR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26552").offset().top-200},500);selectedSku!=null&&"ST6451D02-E-XRL-AIR".indexOf(selectedSku)!=-1&&$("#div_26552").css("border-top","2px solid red");p="ST6451D02-E-XRL-A";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-26552][value='2']").prop("checked",!0);console.log(countt,"countt");getProductDetail("26554");console.log("ST6451D02-E-XRL-A_selected:"+selectedSku,"ST6451D02-E-XRL-A".indexOf(selectedSku));$("#div_26554").offset()!==undefined&&"ST6451D02-E-XRL-A".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26554").offset().top-200},500);selectedSku!=null&&"ST6451D02-E-XRL-A".indexOf(selectedSku)!=-1&&$("#div_26554").css("border-top","2px solid red");assocsitedProducts.push({id:"26554",name:"برد خط کشی ST6451D02-E-XRL-A سمت چپ",stock:"False",price:" 880,000 تومان",sku:"ST6451D02-E-XRL-A"});console.log(countt,"countt");getProductDetail("26555");console.log("ST6451D02-E-XRR-9IR_selected:"+selectedSku,"ST6451D02-E-XRR-9IR".indexOf(selectedSku));$("#div_26554").offset()!==undefined&&"ST6451D02-E-XRR-9IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26554").offset().top-200},500);selectedSku!=null&&"ST6451D02-E-XRR-9IR".indexOf(selectedSku)!=-1&&$("#div_26554").css("border-top","2px solid red");p="ST6451D02-E-XRR-9";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-26554][value='2']").prop("checked",!0);console.log(countt,"countt");getProductDetail("26556");console.log("ST6451D02-E-XRR-9_selected:"+selectedSku,"ST6451D02-E-XRR-9".indexOf(selectedSku));$("#div_26556").offset()!==undefined&&"ST6451D02-E-XRR-9".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26556").offset().top-200},500);selectedSku!=null&&"ST6451D02-E-XRR-9".indexOf(selectedSku)!=-1&&$("#div_26556").css("border-top","2px solid red");assocsitedProducts.push({id:"26556",name:"برد خط کشی ST6451D02-E-XRR-9 سمت راست",stock:"False",price:" 880,000 تومان",sku:"ST6451D02-E-XRR-9"});console.log(countt,"countt");getProductDetail("26594");console.log("V500DJ7-QE1IR_selected:"+selectedSku,"V500DJ7-QE1IR".indexOf(selectedSku));$("#div_26593").offset()!==undefined&&"V500DJ7-QE1IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26593").offset().top-200},500);selectedSku!=null&&"V500DJ7-QE1IR".indexOf(selectedSku)!=-1&&$("#div_26593").css("border-top","2px solid red");p="V500DJ7-QE1";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-26593][value='2']").prop("checked",!0);console.log(countt,"countt");getProductDetail("26595");console.log("V500DJ7-QE1_selected:"+selectedSku,"V500DJ7-QE1".indexOf(selectedSku));$("#div_26595").offset()!==undefined&&"V500DJ7-QE1".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26595").offset().top-200},500);selectedSku!=null&&"V500DJ7-QE1".indexOf(selectedSku)!=-1&&$("#div_26595").css("border-top","2px solid red");assocsitedProducts.push({id:"26595",name:"V500DJ7-QE1",stock:"False",price:" تومان",sku:"V500DJ7-QE1"});$(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()})})
| |