"+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:"19656",name:"پنل تلویزیون 55 جی پلاس-4K",stock:"False",price:" تومان",sku:"TFT55UHDGPLS"});stockProducts.push({id:"24783",name:"پنل تلویزیون 55 ال جی-4K دو فلت",stock:"False",price:" تومان",sku:"TFT55UHDLG2"});stockProducts.push({id:"24784",name:"پنل تلویزیون 55 ال جی-4K تک فلت",stock:"False",price:" تومان",sku:"TFT55UHDLGD"});stockProducts.push({id:"25924",name:"پنل تلویزیون 55-ST",stock:"False",price:" تومان",sku:"TFT55UHDST54"});stockProducts.push({id:"25926",name:"پنل تلویزیون 55 سامسونگ-FHD",stock:"False",price:" تومان",sku:"TFT55FHD001IR"});stockProducts.push({id:"25927",name:"پنل تلویزیون 55 سامسونگ-FHD",stock:"False",price:" تومان",sku:"TFT55FHD001"});stockProducts.push({id:"25929",name:"پنل تلویزیون 55 ال جی-4K",stock:"False",price:" تومان",sku:"TFT55UHD001IR"});stockProducts.push({id:"25930",name:"پنل تلویزیون 55 ال جی-4K",stock:"False",price:" تومان",sku:"TFT55UHD001"});stockProducts.push({id:"26567",name:"پنل تلویزیون 55 الجی-4K بدون تیکان",stock:"False",price:" تومان",sku:"TFT55UHDBOE01"});stockProducts.push({id:"26568",name:"پنل تلویزیون 55 دوو-4K تیکان دار",stock:"False",price:" تومان",sku:"TFT55UHDBOE02"});stockProducts.push({id:"27034",name:"پنل تلویزیون 55 سونی-4K",stock:"True",price:" تومان",sku:"ST5461D11-3"});stockProducts.push({id:"27035",name:"پنل تلویزیون 55 ال جی",stock:"True",price:" تومان",sku:"HV550QUB-E1D"});stockProducts.push({id:"27036",name:"پنل تلویزیون 55 ال جی",stock:"True",price:" تومان",sku:"LC550EQP-SPA1"});stockProducts.push({id:"27862",name:"پنل تلویزیون 55 الجی",stock:"True",price:" تومان",sku:"LC550EQQ-SMA4"});stockProducts.push({id:"28281",name:"پنل تلویزیون 55 الجی",stock:"True",price:" تومان",sku:"HV550QUB-F70"});stockProducts.push({id:"28499",name:"پنل تلویزیون 55 سامسونگ مدل T550QVN07.C",stock:"False",price:" تومان",sku:"T550QVN07.C"});stockProducts.push({id:"28938",name:"پنل تلویزیون 55 سونی مدل T550QVN07.5",stock:"False",price:" تومان",sku:"T550QVN07.5"});stockProducts.push({id:"28939",name:"پنل تلویزیون 55 سامسونگ مدل LC550EQC-SPA3",stock:"False",price:" تومان",sku:"LC550EQC-SPA3"});stockProducts.push({id:"28940",name:"پنل تلویزیون 55 سامسونگ مدل ST5461D11-6",stock:"False",price:" تومان",sku:"ST5461D11-6"});stockProducts.push({id:"28941",name:"پنل تلویزیون 55 سامسونگ مدل ST5461D11-8",stock:"False",price:" تومان",sku:"ST5461D11-8"});stockProducts.push({id:"28944",name:"پنل تلویزیون 55 سونی مدل T550HVN08.4",stock:"False",price:" تومان",sku:"T550HVN08.4"});stockProducts.push({id:"28945",name:"پنل تلویزیون 55 مدل ST5461D01-3",stock:"True",price:" تومان",sku:"ST5461D01-3"});stockProducts.push({id:"28946",name:"پنل تلویزیون 55 الجی مدل LC550EGJ-SJM2",stock:"True",price:" تومان",sku:"LC550EGJ-SJM2"});stockProducts.push({id:"28947",name:"پنل تلویزیون 55 الجی مدل LC550EGJ-SKA4",stock:"False",price:" تومان",sku:"LC550EGJ-SKA4"});stockProducts.push({id:"28948",name:"پنل تلویزیون 55 الجی مدل LC550EG4-SKM3",stock:"True",price:" تومان",sku:"LC550EG4-SKM3"});stockProducts.push({id:"28949",name:"پنل تلویزیون 55 الجی مدل LC550EGY-SJM2",stock:"True",price:" تومان",sku:"LC550EGY-SJM2"});stockProducts.push({id:"29176",name:"پنل تلویزیون 55 مدل LC550EQC-SPA1",stock:"False",price:" تومان",sku:"LC550EQC-SPA1"});stockProducts.push({id:"29177",name:"پنل تلویزیون 55 مدل LC550EGY-SMM3",stock:"True",price:" تومان",sku:"LC550EGY-SMM3"});stockProducts.push({id:"29178",name:"پنل تلویزیون 55 مدل ST5461D09-3",stock:"True",price:" تومان",sku:"ST5461D09-3"});stockProducts.push({id:"29179",name:"پنل تلویزیون 55 مدل LC550EQC-SMA4",stock:"True",price:" تومان",sku:"LC550EQC-SMA4"});stockProducts.push({id:"29395",name:"پنل تلویزیون 55 سونی",stock:"False",price:" تومان",sku:"HV550QUB-F1K"});stockProducts.push({id:"29403",name:"پنل تلویزیون 55 سامسونگ",stock:"True",price:" تومان",sku:"LTJ550HW08-C"});stockProducts.push({id:"29765",name:"HV550QUB-N4D",stock:"True",price:" تومان",sku:"HV550QUB-N4D"});stockProducts.push({id:"29766",name:"HV550QUB-V8L",stock:"True",price:" تومان",sku:"HV550QUB-V8L"});stockProducts.push({id:"29767",name:"T550QVN05.6",stock:"True",price:" تومان",sku:"T550QVN05.6IR"});stockProducts.push({id:"29768",name:"T550QVN05.6",stock:"False",price:" تومان",sku:"T550QVN05.6"});stockProducts.push({id:"29769",name:"ST5461D11-4",stock:"False",price:" تومان",sku:"ST5461D11-4IR"});stockProducts.push({id:"29770",name:"ST5461D11-4",stock:"False",price:" تومان",sku:"ST5461D11-4"});stockProducts.push({id:"29771",name:"ST5461D07-7",stock:"True",price:" تومان",sku:"ST5461D07-7IR"});stockProducts.push({id:"29772",name:"ST5461D07-7",stock:"False",price:" تومان",sku:"ST5461D07-7"});stockProducts.push({id:"29773",name:"ST5461D13-2",stock:"True",price:" تومان",sku:"ST5461D13-2IR"});stockProducts.push({id:"29774",name:"ST5461D13-2",stock:"True",price:" تومان",sku:"ST5461D13-2"});stockProducts.push({id:"29775",name:"ST5461D09-1",stock:"False",price:" تومان",sku:"ST5461D09-1IR"});stockProducts.push({id:"29776",name:"ST5461D09-1",stock:"False",price:" تومان",sku:"ST5461D09-1"});stockProducts.push({id:"29963",name:"پنل تلویزیون 55 سامسونگ",stock:"True",price:" تومان",sku:"LC550EQC-SPA2"});stockProducts.push({id:"29965",name:"پنل تلویزیون 55 سونی",stock:"True",price:" تومان",sku:"HV550QUB-F1KIR"});stockProducts.push({id:"31029",name:"پنل تلویزیون 55 الجی",stock:"True",price:" تومان",sku:"LC550EQQ-SMA4IR"});stockProducts.push({id:"31034",name:"پنل تلویزیون 55",stock:"True",price:" تومان",sku:"ST5461D13-5"});stockProducts.push({id:"31035",name:"پنل تلویزیون 55",stock:"False",price:" تومان",sku:"ST5461D13-5IR"});console.log(countt,"countt");getProductDetail("19656");console.log("TFT55UHDGPLS_selected:"+selectedSku,"TFT55UHDGPLS".indexOf(selectedSku));$("#div_19656").offset()!==undefined&&"TFT55UHDGPLS".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_19656").offset().top-200},500);selectedSku!=null&&"TFT55UHDGPLS".indexOf(selectedSku)!=-1&&$("#div_19656").css("border-top","2px solid red");assocsitedProducts.push({id:"19656",name:"پنل تلویزیون 55 جی پلاس-4K",stock:"False",price:" تومان",sku:"TFT55UHDGPLS"});console.log(countt,"countt");getProductDetail("24783");console.log("TFT55UHDLG2_selected:"+selectedSku,"TFT55UHDLG2".indexOf(selectedSku));$("#div_24783").offset()!==undefined&&"TFT55UHDLG2".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_24783").offset().top-200},500);selectedSku!=null&&"TFT55UHDLG2".indexOf(selectedSku)!=-1&&$("#div_24783").css("border-top","2px solid red");assocsitedProducts.push({id:"24783",name:"پنل تلویزیون 55 ال جی-4K دو فلت",stock:"False",price:" تومان",sku:"TFT55UHDLG2"});console.log(countt,"countt");getProductDetail("24784");console.log("TFT55UHDLGD_selected:"+selectedSku,"TFT55UHDLGD".indexOf(selectedSku));$("#div_24784").offset()!==undefined&&"TFT55UHDLGD".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_24784").offset().top-200},500);selectedSku!=null&&"TFT55UHDLGD".indexOf(selectedSku)!=-1&&$("#div_24784").css("border-top","2px solid red");assocsitedProducts.push({id:"24784",name:"پنل تلویزیون 55 ال جی-4K تک فلت",stock:"False",price:" تومان",sku:"TFT55UHDLGD"});console.log(countt,"countt");getProductDetail("25924");console.log("TFT55UHDST54_selected:"+selectedSku,"TFT55UHDST54".indexOf(selectedSku));$("#div_25924").offset()!==undefined&&"TFT55UHDST54".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_25924").offset().top-200},500);selectedSku!=null&&"TFT55UHDST54".indexOf(selectedSku)!=-1&&$("#div_25924").css("border-top","2px solid red");assocsitedProducts.push({id:"25924",name:"پنل تلویزیون 55-ST",stock:"False",price:" تومان",sku:"TFT55UHDST54"});console.log(countt,"countt");getProductDetail("25926");console.log("TFT55FHD001IR_selected:"+selectedSku,"TFT55FHD001IR".indexOf(selectedSku));$("#div_25925").offset()!==undefined&&"TFT55FHD001IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_25925").offset().top-200},500);selectedSku!=null&&"TFT55FHD001IR".indexOf(selectedSku)!=-1&&$("#div_25925").css("border-top","2px solid red");p="TFT55FHD001";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-25925][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("25927");console.log("TFT55FHD001_selected:"+selectedSku,"TFT55FHD001".indexOf(selectedSku));$("#div_25927").offset()!==undefined&&"TFT55FHD001".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_25927").offset().top-200},500);selectedSku!=null&&"TFT55FHD001".indexOf(selectedSku)!=-1&&$("#div_25927").css("border-top","2px solid red");assocsitedProducts.push({id:"25927",name:"پنل تلویزیون 55 سامسونگ-FHD",stock:"False",price:" تومان",sku:"TFT55FHD001"});console.log(countt,"countt");getProductDetail("25929");console.log("TFT55UHD001IR_selected:"+selectedSku,"TFT55UHD001IR".indexOf(selectedSku));$("#div_25928").offset()!==undefined&&"TFT55UHD001IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_25928").offset().top-200},500);selectedSku!=null&&"TFT55UHD001IR".indexOf(selectedSku)!=-1&&$("#div_25928").css("border-top","2px solid red");p="TFT55UHD001";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-25928][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("25930");console.log("TFT55UHD001_selected:"+selectedSku,"TFT55UHD001".indexOf(selectedSku));$("#div_25930").offset()!==undefined&&"TFT55UHD001".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_25930").offset().top-200},500);selectedSku!=null&&"TFT55UHD001".indexOf(selectedSku)!=-1&&$("#div_25930").css("border-top","2px solid red");assocsitedProducts.push({id:"25930",name:"پنل تلویزیون 55 ال جی-4K",stock:"False",price:" تومان",sku:"TFT55UHD001"});console.log(countt,"countt");getProductDetail("26567");console.log("TFT55UHDBOE01_selected:"+selectedSku,"TFT55UHDBOE01".indexOf(selectedSku));$("#div_26567").offset()!==undefined&&"TFT55UHDBOE01".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26567").offset().top-200},500);selectedSku!=null&&"TFT55UHDBOE01".indexOf(selectedSku)!=-1&&$("#div_26567").css("border-top","2px solid red");assocsitedProducts.push({id:"26567",name:"پنل تلویزیون 55 الجی-4K بدون تیکان",stock:"False",price:" تومان",sku:"TFT55UHDBOE01"});console.log(countt,"countt");getProductDetail("26568");console.log("TFT55UHDBOE02_selected:"+selectedSku,"TFT55UHDBOE02".indexOf(selectedSku));$("#div_26568").offset()!==undefined&&"TFT55UHDBOE02".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_26568").offset().top-200},500);selectedSku!=null&&"TFT55UHDBOE02".indexOf(selectedSku)!=-1&&$("#div_26568").css("border-top","2px solid red");assocsitedProducts.push({id:"26568",name:"پنل تلویزیون 55 دوو-4K تیکان دار",stock:"False",price:" تومان",sku:"TFT55UHDBOE02"});console.log(countt,"countt");getProductDetail("27034");console.log("ST5461D11-3_selected:"+selectedSku,"ST5461D11-3".indexOf(selectedSku));$("#div_27034").offset()!==undefined&&"ST5461D11-3".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_27034").offset().top-200},500);selectedSku!=null&&"ST5461D11-3".indexOf(selectedSku)!=-1&&$("#div_27034").css("border-top","2px solid red");assocsitedProducts.push({id:"27034",name:"پنل تلویزیون 55 سونی-4K",stock:"True",price:" تومان",sku:"ST5461D11-3"});$("input[name=radio-27034][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("27035");console.log("HV550QUB-E1D_selected:"+selectedSku,"HV550QUB-E1D".indexOf(selectedSku));$("#div_27035").offset()!==undefined&&"HV550QUB-E1D".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_27035").offset().top-200},500);selectedSku!=null&&"HV550QUB-E1D".indexOf(selectedSku)!=-1&&$("#div_27035").css("border-top","2px solid red");assocsitedProducts.push({id:"27035",name:"پنل تلویزیون 55 ال جی",stock:"True",price:" تومان",sku:"HV550QUB-E1D"});$("input[name=radio-27035][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("27036");console.log("LC550EQP-SPA1_selected:"+selectedSku,"LC550EQP-SPA1".indexOf(selectedSku));$("#div_27036").offset()!==undefined&&"LC550EQP-SPA1".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_27036").offset().top-200},500);selectedSku!=null&&"LC550EQP-SPA1".indexOf(selectedSku)!=-1&&$("#div_27036").css("border-top","2px solid red");assocsitedProducts.push({id:"27036",name:"پنل تلویزیون 55 ال جی",stock:"True",price:" تومان",sku:"LC550EQP-SPA1"});$("input[name=radio-27036][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("27862");console.log("LC550EQQ-SMA4_selected:"+selectedSku,"LC550EQQ-SMA4".indexOf(selectedSku));$("#div_27862").offset()!==undefined&&"LC550EQQ-SMA4".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_27862").offset().top-200},500);selectedSku!=null&&"LC550EQQ-SMA4".indexOf(selectedSku)!=-1&&$("#div_27862").css("border-top","2px solid red");assocsitedProducts.push({id:"27862",name:"پنل تلویزیون 55 الجی",stock:"True",price:" تومان",sku:"LC550EQQ-SMA4"});$("input[name=radio-27862][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("28281");console.log("HV550QUB-F70_selected:"+selectedSku,"HV550QUB-F70".indexOf(selectedSku));$("#div_28281").offset()!==undefined&&"HV550QUB-F70".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_28281").offset().top-200},500);selectedSku!=null&&"HV550QUB-F70".indexOf(selectedSku)!=-1&&$("#div_28281").css("border-top","2px solid red");assocsitedProducts.push({id:"28281",name:"پنل تلویزیون 55 الجی",stock:"True",price:" تومان",sku:"HV550QUB-F70"});$("input[name=radio-28281][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("28499");console.log("T550QVN07.C_selected:"+selectedSku,"T550QVN07.C".indexOf(selectedSku));$("#div_28499").offset()!==undefined&&"T550QVN07.C".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_28499").offset().top-200},500);selectedSku!=null&&"T550QVN07.C".indexOf(selectedSku)!=-1&&$("#div_28499").css("border-top","2px solid red");assocsitedProducts.push({id:"28499",name:"پنل تلویزیون 55 سامسونگ مدل T550QVN07.C",stock:"False",price:" تومان",sku:"T550QVN07.C"});console.log(countt,"countt");getProductDetail("28938");console.log("T550QVN07.5_selected:"+selectedSku,"T550QVN07.5".indexOf(selectedSku));$("#div_28938").offset()!==undefined&&"T550QVN07.5".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_28938").offset().top-200},500);selectedSku!=null&&"T550QVN07.5".indexOf(selectedSku)!=-1&&$("#div_28938").css("border-top","2px solid red");assocsitedProducts.push({id:"28938",name:"پنل تلویزیون 55 سونی مدل T550QVN07.5",stock:"False",price:" تومان",sku:"T550QVN07.5"});console.log(countt,"countt");getProductDetail("28939");console.log("LC550EQC-SPA3_selected:"+selectedSku,"LC550EQC-SPA3".indexOf(selectedSku));$("#div_28939").offset()!==undefined&&"LC550EQC-SPA3".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_28939").offset().top-200},500);selectedSku!=null&&"LC550EQC-SPA3".indexOf(selectedSku)!=-1&&$("#div_28939").css("border-top","2px solid red");assocsitedProducts.push({id:"28939",name:"پنل تلویزیون 55 سامسونگ مدل LC550EQC-SPA3",stock:"False",price:" تومان",sku:"LC550EQC-SPA3"});console.log(countt,"countt");getProductDetail("28940");console.log("ST5461D11-6_selected:"+selectedSku,"ST5461D11-6".indexOf(selectedSku));$("#div_28940").offset()!==undefined&&"ST5461D11-6".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_28940").offset().top-200},500);selectedSku!=null&&"ST5461D11-6".indexOf(selectedSku)!=-1&&$("#div_28940").css("border-top","2px solid red");assocsitedProducts.push({id:"28940",name:"پنل تلویزیون 55 سامسونگ مدل ST5461D11-6",stock:"False",price:" تومان",sku:"ST5461D11-6"});console.log(countt,"countt");getProductDetail("28941");console.log("ST5461D11-8_selected:"+selectedSku,"ST5461D11-8".indexOf(selectedSku));$("#div_28941").offset()!==undefined&&"ST5461D11-8".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_28941").offset().top-200},500);selectedSku!=null&&"ST5461D11-8".indexOf(selectedSku)!=-1&&$("#div_28941").css("border-top","2px solid red");assocsitedProducts.push({id:"28941",name:"پنل تلویزیون 55 سامسونگ مدل ST5461D11-8",stock:"False",price:" تومان",sku:"ST5461D11-8"});console.log(countt,"countt");getProductDetail("28944");console.log("T550HVN08.4_selected:"+selectedSku,"T550HVN08.4".indexOf(selectedSku));$("#div_28944").offset()!==undefined&&"T550HVN08.4".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_28944").offset().top-200},500);selectedSku!=null&&"T550HVN08.4".indexOf(selectedSku)!=-1&&$("#div_28944").css("border-top","2px solid red");assocsitedProducts.push({id:"28944",name:"پنل تلویزیون 55 سونی مدل T550HVN08.4",stock:"False",price:" تومان",sku:"T550HVN08.4"});console.log(countt,"countt");getProductDetail("28945");console.log("ST5461D01-3_selected:"+selectedSku,"ST5461D01-3".indexOf(selectedSku));$("#div_28945").offset()!==undefined&&"ST5461D01-3".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_28945").offset().top-200},500);selectedSku!=null&&"ST5461D01-3".indexOf(selectedSku)!=-1&&$("#div_28945").css("border-top","2px solid red");assocsitedProducts.push({id:"28945",name:"پنل تلویزیون 55 مدل ST5461D01-3",stock:"True",price:" تومان",sku:"ST5461D01-3"});$("input[name=radio-28945][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("28946");console.log("LC550EGJ-SJM2_selected:"+selectedSku,"LC550EGJ-SJM2".indexOf(selectedSku));$("#div_28946").offset()!==undefined&&"LC550EGJ-SJM2".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_28946").offset().top-200},500);selectedSku!=null&&"LC550EGJ-SJM2".indexOf(selectedSku)!=-1&&$("#div_28946").css("border-top","2px solid red");assocsitedProducts.push({id:"28946",name:"پنل تلویزیون 55 الجی مدل LC550EGJ-SJM2",stock:"True",price:" تومان",sku:"LC550EGJ-SJM2"});$("input[name=radio-28946][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("28947");console.log("LC550EGJ-SKA4_selected:"+selectedSku,"LC550EGJ-SKA4".indexOf(selectedSku));$("#div_28947").offset()!==undefined&&"LC550EGJ-SKA4".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_28947").offset().top-200},500);selectedSku!=null&&"LC550EGJ-SKA4".indexOf(selectedSku)!=-1&&$("#div_28947").css("border-top","2px solid red");assocsitedProducts.push({id:"28947",name:"پنل تلویزیون 55 الجی مدل LC550EGJ-SKA4",stock:"False",price:" تومان",sku:"LC550EGJ-SKA4"});console.log(countt,"countt");getProductDetail("28948");console.log("LC550EG4-SKM3_selected:"+selectedSku,"LC550EG4-SKM3".indexOf(selectedSku));$("#div_28948").offset()!==undefined&&"LC550EG4-SKM3".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_28948").offset().top-200},500);selectedSku!=null&&"LC550EG4-SKM3".indexOf(selectedSku)!=-1&&$("#div_28948").css("border-top","2px solid red");assocsitedProducts.push({id:"28948",name:"پنل تلویزیون 55 الجی مدل LC550EG4-SKM3",stock:"True",price:" تومان",sku:"LC550EG4-SKM3"});$("input[name=radio-28948][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("28949");console.log("LC550EGY-SJM2_selected:"+selectedSku,"LC550EGY-SJM2".indexOf(selectedSku));$("#div_28949").offset()!==undefined&&"LC550EGY-SJM2".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_28949").offset().top-200},500);selectedSku!=null&&"LC550EGY-SJM2".indexOf(selectedSku)!=-1&&$("#div_28949").css("border-top","2px solid red");assocsitedProducts.push({id:"28949",name:"پنل تلویزیون 55 الجی مدل LC550EGY-SJM2",stock:"True",price:" تومان",sku:"LC550EGY-SJM2"});$("input[name=radio-28949][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("29176");console.log("LC550EQC-SPA1_selected:"+selectedSku,"LC550EQC-SPA1".indexOf(selectedSku));$("#div_29176").offset()!==undefined&&"LC550EQC-SPA1".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_29176").offset().top-200},500);selectedSku!=null&&"LC550EQC-SPA1".indexOf(selectedSku)!=-1&&$("#div_29176").css("border-top","2px solid red");assocsitedProducts.push({id:"29176",name:"پنل تلویزیون 55 مدل LC550EQC-SPA1",stock:"False",price:" تومان",sku:"LC550EQC-SPA1"});console.log(countt,"countt");getProductDetail("29177");console.log("LC550EGY-SMM3_selected:"+selectedSku,"LC550EGY-SMM3".indexOf(selectedSku));$("#div_29177").offset()!==undefined&&"LC550EGY-SMM3".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_29177").offset().top-200},500);selectedSku!=null&&"LC550EGY-SMM3".indexOf(selectedSku)!=-1&&$("#div_29177").css("border-top","2px solid red");assocsitedProducts.push({id:"29177",name:"پنل تلویزیون 55 مدل LC550EGY-SMM3",stock:"True",price:" تومان",sku:"LC550EGY-SMM3"});$("input[name=radio-29177][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("29178");console.log("ST5461D09-3_selected:"+selectedSku,"ST5461D09-3".indexOf(selectedSku));$("#div_29178").offset()!==undefined&&"ST5461D09-3".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_29178").offset().top-200},500);selectedSku!=null&&"ST5461D09-3".indexOf(selectedSku)!=-1&&$("#div_29178").css("border-top","2px solid red");assocsitedProducts.push({id:"29178",name:"پنل تلویزیون 55 مدل ST5461D09-3",stock:"True",price:" تومان",sku:"ST5461D09-3"});$("input[name=radio-29178][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("29179");console.log("LC550EQC-SMA4_selected:"+selectedSku,"LC550EQC-SMA4".indexOf(selectedSku));$("#div_29179").offset()!==undefined&&"LC550EQC-SMA4".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_29179").offset().top-200},500);selectedSku!=null&&"LC550EQC-SMA4".indexOf(selectedSku)!=-1&&$("#div_29179").css("border-top","2px solid red");assocsitedProducts.push({id:"29179",name:"پنل تلویزیون 55 مدل LC550EQC-SMA4",stock:"True",price:" تومان",sku:"LC550EQC-SMA4"});$("input[name=radio-29179][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("29395");console.log("HV550QUB-F1K_selected:"+selectedSku,"HV550QUB-F1K".indexOf(selectedSku));$("#div_29395").offset()!==undefined&&"HV550QUB-F1K".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_29395").offset().top-200},500);selectedSku!=null&&"HV550QUB-F1K".indexOf(selectedSku)!=-1&&$("#div_29395").css("border-top","2px solid red");assocsitedProducts.push({id:"29395",name:"پنل تلویزیون 55 سونی",stock:"False",price:" تومان",sku:"HV550QUB-F1K"});console.log(countt,"countt");getProductDetail("29403");console.log("LTJ550HW08-C_selected:"+selectedSku,"LTJ550HW08-C".indexOf(selectedSku));$("#div_29403").offset()!==undefined&&"LTJ550HW08-C".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_29403").offset().top-200},500);selectedSku!=null&&"LTJ550HW08-C".indexOf(selectedSku)!=-1&&$("#div_29403").css("border-top","2px solid red");assocsitedProducts.push({id:"29403",name:"پنل تلویزیون 55 سامسونگ",stock:"True",price:" تومان",sku:"LTJ550HW08-C"});$("input[name=radio-29403][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("29765");console.log("HV550QUB-N4D_selected:"+selectedSku,"HV550QUB-N4D".indexOf(selectedSku));$("#div_29765").offset()!==undefined&&"HV550QUB-N4D".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_29765").offset().top-200},500);selectedSku!=null&&"HV550QUB-N4D".indexOf(selectedSku)!=-1&&$("#div_29765").css("border-top","2px solid red");assocsitedProducts.push({id:"29765",name:"HV550QUB-N4D",stock:"True",price:" تومان",sku:"HV550QUB-N4D"});$("input[name=radio-29765][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("29766");console.log("HV550QUB-V8L_selected:"+selectedSku,"HV550QUB-V8L".indexOf(selectedSku));$("#div_29766").offset()!==undefined&&"HV550QUB-V8L".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_29766").offset().top-200},500);selectedSku!=null&&"HV550QUB-V8L".indexOf(selectedSku)!=-1&&$("#div_29766").css("border-top","2px solid red");assocsitedProducts.push({id:"29766",name:"HV550QUB-V8L",stock:"True",price:" تومان",sku:"HV550QUB-V8L"});$("input[name=radio-29766][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("29767");console.log("T550QVN05.6IR_selected:"+selectedSku,"T550QVN05.6IR".indexOf(selectedSku));$("#div_29766").offset()!==undefined&&"T550QVN05.6IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_29766").offset().top-200},500);selectedSku!=null&&"T550QVN05.6IR".indexOf(selectedSku)!=-1&&$("#div_29766").css("border-top","2px solid red");p="T550QVN05.6";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-29766][value='2']").prop("checked",!0);console.log(countt,"countt");getProductDetail("29768");console.log("T550QVN05.6_selected:"+selectedSku,"T550QVN05.6".indexOf(selectedSku));$("#div_29768").offset()!==undefined&&"T550QVN05.6".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_29768").offset().top-200},500);selectedSku!=null&&"T550QVN05.6".indexOf(selectedSku)!=-1&&$("#div_29768").css("border-top","2px solid red");assocsitedProducts.push({id:"29768",name:"T550QVN05.6",stock:"False",price:" تومان",sku:"T550QVN05.6"});console.log(countt,"countt");getProductDetail("29769");console.log("ST5461D11-4IR_selected:"+selectedSku,"ST5461D11-4IR".indexOf(selectedSku));$("#div_29768").offset()!==undefined&&"ST5461D11-4IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_29768").offset().top-200},500);selectedSku!=null&&"ST5461D11-4IR".indexOf(selectedSku)!=-1&&$("#div_29768").css("border-top","2px solid red");p="ST5461D11-4";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-29768][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("29770");console.log("ST5461D11-4_selected:"+selectedSku,"ST5461D11-4".indexOf(selectedSku));$("#div_29770").offset()!==undefined&&"ST5461D11-4".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_29770").offset().top-200},500);selectedSku!=null&&"ST5461D11-4".indexOf(selectedSku)!=-1&&$("#div_29770").css("border-top","2px solid red");assocsitedProducts.push({id:"29770",name:"ST5461D11-4",stock:"False",price:" تومان",sku:"ST5461D11-4"});console.log(countt,"countt");getProductDetail("29771");console.log("ST5461D07-7IR_selected:"+selectedSku,"ST5461D07-7IR".indexOf(selectedSku));$("#div_29770").offset()!==undefined&&"ST5461D07-7IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_29770").offset().top-200},500);selectedSku!=null&&"ST5461D07-7IR".indexOf(selectedSku)!=-1&&$("#div_29770").css("border-top","2px solid red");p="ST5461D07-7";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-29770][value='2']").prop("checked",!0);console.log(countt,"countt");getProductDetail("29772");console.log("ST5461D07-7_selected:"+selectedSku,"ST5461D07-7".indexOf(selectedSku));$("#div_29772").offset()!==undefined&&"ST5461D07-7".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_29772").offset().top-200},500);selectedSku!=null&&"ST5461D07-7".indexOf(selectedSku)!=-1&&$("#div_29772").css("border-top","2px solid red");assocsitedProducts.push({id:"29772",name:"ST5461D07-7",stock:"False",price:" تومان",sku:"ST5461D07-7"});console.log(countt,"countt");getProductDetail("29773");console.log("ST5461D13-2IR_selected:"+selectedSku,"ST5461D13-2IR".indexOf(selectedSku));$("#div_29772").offset()!==undefined&&"ST5461D13-2IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_29772").offset().top-200},500);selectedSku!=null&&"ST5461D13-2IR".indexOf(selectedSku)!=-1&&$("#div_29772").css("border-top","2px solid red");p="ST5461D13-2";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-29772][value='2']").prop("checked",!0);console.log(countt,"countt");getProductDetail("29774");console.log("ST5461D13-2_selected:"+selectedSku,"ST5461D13-2".indexOf(selectedSku));$("#div_29774").offset()!==undefined&&"ST5461D13-2".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_29774").offset().top-200},500);selectedSku!=null&&"ST5461D13-2".indexOf(selectedSku)!=-1&&$("#div_29774").css("border-top","2px solid red");assocsitedProducts.push({id:"29774",name:"ST5461D13-2",stock:"True",price:" تومان",sku:"ST5461D13-2"});$("input[name=radio-29774][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("29775");console.log("ST5461D09-1IR_selected:"+selectedSku,"ST5461D09-1IR".indexOf(selectedSku));$("#div_29774").offset()!==undefined&&"ST5461D09-1IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_29774").offset().top-200},500);selectedSku!=null&&"ST5461D09-1IR".indexOf(selectedSku)!=-1&&$("#div_29774").css("border-top","2px solid red");p="ST5461D09-1";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-29774][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("29776");console.log("ST5461D09-1_selected:"+selectedSku,"ST5461D09-1".indexOf(selectedSku));$("#div_29776").offset()!==undefined&&"ST5461D09-1".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_29776").offset().top-200},500);selectedSku!=null&&"ST5461D09-1".indexOf(selectedSku)!=-1&&$("#div_29776").css("border-top","2px solid red");assocsitedProducts.push({id:"29776",name:"ST5461D09-1",stock:"False",price:" تومان",sku:"ST5461D09-1"});console.log(countt,"countt");getProductDetail("29963");console.log("LC550EQC-SPA2_selected:"+selectedSku,"LC550EQC-SPA2".indexOf(selectedSku));$("#div_29963").offset()!==undefined&&"LC550EQC-SPA2".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_29963").offset().top-200},500);selectedSku!=null&&"LC550EQC-SPA2".indexOf(selectedSku)!=-1&&$("#div_29963").css("border-top","2px solid red");assocsitedProducts.push({id:"29963",name:"پنل تلویزیون 55 سامسونگ",stock:"True",price:" تومان",sku:"LC550EQC-SPA2"});$("input[name=radio-29963][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("29965");console.log("HV550QUB-F1KIR_selected:"+selectedSku,"HV550QUB-F1KIR".indexOf(selectedSku));$("#div_29964").offset()!==undefined&&"HV550QUB-F1KIR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_29964").offset().top-200},500);selectedSku!=null&&"HV550QUB-F1KIR".indexOf(selectedSku)!=-1&&$("#div_29964").css("border-top","2px solid red");p="HV550QUB-F1K";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-29964][value='2']").prop("checked",!0);console.log(countt,"countt");getProductDetail("31029");console.log("LC550EQQ-SMA4IR_selected:"+selectedSku,"LC550EQQ-SMA4IR".indexOf(selectedSku));$("#div_31028").offset()!==undefined&&"LC550EQQ-SMA4IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_31028").offset().top-200},500);selectedSku!=null&&"LC550EQQ-SMA4IR".indexOf(selectedSku)!=-1&&$("#div_31028").css("border-top","2px solid red");p="LC550EQQ-SMA4";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-31028][value='2']").prop("checked",!0);console.log(countt,"countt");getProductDetail("31034");console.log("ST5461D13-5_selected:"+selectedSku,"ST5461D13-5".indexOf(selectedSku));$("#div_31034").offset()!==undefined&&"ST5461D13-5".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_31034").offset().top-200},500);selectedSku!=null&&"ST5461D13-5".indexOf(selectedSku)!=-1&&$("#div_31034").css("border-top","2px solid red");assocsitedProducts.push({id:"31034",name:"پنل تلویزیون 55",stock:"True",price:" تومان",sku:"ST5461D13-5"});$("input[name=radio-31034][value='1']").prop("checked",!0);console.log(countt,"countt");getProductDetail("31035");console.log("ST5461D13-5IR_selected:"+selectedSku,"ST5461D13-5IR".indexOf(selectedSku));$("#div_31034").offset()!==undefined&&"ST5461D13-5IR".indexOf(selectedSku)!=-1&&selectedSku!=null&&$([document.documentElement,document.body]).animate({scrollTop:$("#div_31034").offset().top-200},500);selectedSku!=null&&"ST5461D13-5IR".indexOf(selectedSku)!=-1&&$("#div_31034").css("border-top","2px solid red");p="ST5461D13-5";mainProduct=stockProducts.find(n=>n.sku==p);console.log(p,"p");console.log(mainProduct,"mainProduct");mainProduct.stock!="True"&&$("input[name=radio-31034][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()})})
| |