var tempbox = '
'; var alternativeProducts = [{"id":2373,"sku":"30012886","name":"Ytong paletka - pozn\u00e1mkov\u00fd blok","attribute_set_id":4,"price":99,"status":1,"visibility":4,"type_id":"simple","created_at":"2023-11-24 14:25:01","updated_at":"2025-03-13 09:19:31","weight":0.3,"extension_attributes":{"website_ids":[1],"category_links":[{"position":0,"category_id":"50"}]},"product_links":[],"options":[],"media_gallery_entries":[{"id":5313,"media_type":"image","label":null,"position":1,"disabled":false,"types":["image","small_image","thumbnail","swatch_image"],"file":"\/b\/l\/blok-paleta-ytong.png"}],"tier_prices":[],"custom_attributes":[{"attribute_code":"short_description","value":"V\u0161echny va\u0161e pozn\u00e1mky na jedn\u00e9 palet\u011b.K rovnom\u011brn\u00e9 a celoplo\u0161n\u00e9 aplikaci malty Multipor FIX X700 na tepeln\u011bizola\u010dn\u00ed desky Multipor tl. 160 mm a v\u00edce.<\/p>\r\n
Specifikace:<\/strong> Specifikace:<\/strong> Pro p\u00e1sovou pilu 230V
\r\n \r\n Rozm\u011br hlad\u00edtka: 270 x 120 mm
\r\n \r\n Rozm\u011br zubu: 20 x 15 mm
\r\n \r\n Tlou\u0161\u0165ka plechu: 0,65 mm
\r\n \r\n Pou\u017eit\u00ed:<\/strong>
\r\n \r\n Doporu\u010dujeme k aplikaci Multipor lehk\u00e9 malty na desky Multipor tlou\u0161\u0165ky 150 mm a v\u00edce.
\r\n \r\n Vlastnosti:<\/strong>
\r\n \r\n Nov\u00e1 dvouslo\u017ekov\u00e1 rukoje\u0165 pro komfortn\u011bj\u0161\u00ed pr\u00e1ci, se stabiln\u00ed podporou.
\r\n \r\n Nerezov\u00fd plech, odoln\u00fd v\u016f\u010di kysel\u00e9mu prost\u0159ed\u00ed."},{"attribute_code":"small_image","value":"\/1\/4\/14_multipor-hladitko-zubove.png"},{"attribute_code":"options_container","value":"container2"},{"attribute_code":"sale","value":"0"},{"attribute_code":"thumbnail","value":"\/1\/4\/14_multipor-hladitko-zubove.png"},{"attribute_code":"swatch_image","value":"\/1\/4\/14_multipor-hladitko-zubove.png"},{"attribute_code":"tax_class_id","value":"2"},{"attribute_code":"msrp_display_actual_price_type","value":"0"},{"attribute_code":"label_znacka_firma","value":"243"},{"attribute_code":"category_ids","value":["2","47"]},{"attribute_code":"required_options","value":"0"},{"attribute_code":"has_options","value":"0"},{"attribute_code":"sw_featured","value":"0"},{"attribute_code":"am_shipping_type","value":"220"},{"attribute_code":"product_image_size","value":"5"}],"sortVar":1181446487},{"id":2367,"sku":"30012852","name":"Hlavn\u00ed sp\u00edna\u010d k pile Lissmac","attribute_set_id":4,"price":3390,"status":1,"visibility":4,"type_id":"simple","created_at":"2023-04-03 13:20:20","updated_at":"2024-03-18 08:58:53","weight":0.5,"extension_attributes":{"website_ids":[1],"category_links":[{"position":0,"category_id":"51"}]},"product_links":[],"options":[],"media_gallery_entries":[{"id":5291,"media_type":"image","label":"Sp\u00edna\u010d LISSMAC","position":1,"disabled":true,"types":["image","small_image","thumbnail","swatch_image"],"file":"\/s\/p\/spinac-4-perex.png"},{"id":5292,"media_type":"image","label":null,"position":2,"disabled":false,"types":[],"file":"\/s\/p\/spinac-4.png"},{"id":5293,"media_type":"image","label":null,"position":3,"disabled":false,"types":[],"file":"\/s\/p\/spinac-3.png"}],"tier_prices":[],"custom_attributes":[{"attribute_code":"short_description","value":"Origin\u00e1ln\u00ed n\u00e1hradn\u00ed d\u00edl k p\u00e1sov\u00e9 p\u00edle Lissmac 502\/2, 510\/2 a MBS 650 rok v\u00fdroby 2006-2009
\r\n\u010c\u00edslo v\u00fdrobku podle seznamu ND Lissmac: 400590, polo\u017eka \u010d. 73\r\n"},{"attribute_code":"image","value":"\/s\/p\/spinac-4-perex.png"},{"attribute_code":"url_key","value":"hlavni-spinac-k-pile-lissmac-3"},{"attribute_code":"gift_message_available","value":"2"},{"attribute_code":"table_technic","value":"
\r\nHmotnost:<\/strong> 0,5 kg
\r\nProdejn\u00ed jednotka:<\/strong> 1 kus
\r\nKe sta\u017een\u00ed:
\r\nProvozn\u00ed n\u00e1vod v PDF
\r\nInformace o p\u00e1sov\u00e9 pile<\/a><\/p>\r\n"},{"attribute_code":"new","value":"0"},{"attribute_code":"small_image","value":"\/s\/p\/spinac-4-perex.png"},{"attribute_code":"meta_title","value":"Hlavn\u00ed sp\u00edna\u010d k pile Lissmac"},{"attribute_code":"options_container","value":"container2"},{"attribute_code":"sale","value":"0"},{"attribute_code":"thumbnail","value":"\/s\/p\/spinac-4-perex.png"},{"attribute_code":"meta_keyword","value":"Hlavn\u00ed sp\u00edna\u010d k pile Lissmac"},{"attribute_code":"swatch_image","value":"\/s\/p\/spinac-4-perex.png"},{"attribute_code":"meta_description","value":"Hlavn\u00ed sp\u00edna\u010d k pile Lissmac "},{"attribute_code":"tax_class_id","value":"2"},{"attribute_code":"msrp_display_actual_price_type","value":"0"},{"attribute_code":"label_znacka_firma","value":"243"},{"attribute_code":"category_ids","value":["51"]},{"attribute_code":"required_options","value":"0"},{"attribute_code":"has_options","value":"0"},{"attribute_code":"sw_featured","value":"0"},{"attribute_code":"image_label","value":"Sp\u00edna\u010d LISSMAC"},{"attribute_code":"small_image_label","value":"Sp\u00edna\u010d LISSMAC"},{"attribute_code":"am_shipping_type","value":"220"},{"attribute_code":"thumbnail_label","value":"Sp\u00edna\u010d LISSMAC"},{"attribute_code":"product_image_size","value":"0"},{"attribute_code":"custom_block","value":"\r\n"}],"sortVar":1191614325}] ;
if (document.querySelector("#alternativeProductContainer")) {
document.querySelector("#alternativeProductContainer").innerHTML = "";
for (var i = 0; i < alternativeProducts.length; i++) {
//var price = (Math.round(((alternativeProducts[i].price * 121) / 100) * 10) / 10).toFixed(2)+" Kč"; //@
var price = (Math.round(((alternativeProducts[i].price * 121) / 100) * 10) / 10).toLocaleString("cs-CZ", {style:"currency", currency:"CZK"}); //@
var image = "/media/catalog/product" + alternativeProducts[i].custom_attributes.find((elm) => elm.attribute_code == "image").value; //@@
var name = alternativeProducts[i].name; //@@@
var link = "/" + alternativeProducts[i].custom_attributes.find((elm) => elm.attribute_code == "url_key").value + ".html"; //@@@@
//document.querySelector("#relatedProductContainer").innerHTML += tempbox.replace("@@@",name).replace("@@",price).replace("@",image);
document.querySelector("#alternativeProductContainer").innerHTML += tempbox.replace("@@@@", link).replace("@@@", name).replace("@@", price).replace("@", image);
}
}