var tempbox = '
'; var alternativeProducts = [{"id":2365,"sku":"30004987","name":"Hlavn\u00ed sp\u00edna\u010d k pile Lissmac 2","attribute_set_id":4,"price":3071,"status":1,"visibility":4,"type_id":"simple","created_at":"2023-04-03 13:02:52","updated_at":"2025-06-18 13:21:58","weight":0.5,"extension_attributes":{"website_ids":[1],"category_links":[{"position":0,"category_id":"51"}]},"product_links":[],"options":[],"media_gallery_entries":[{"id":5281,"media_type":"image","label":null,"position":1,"disabled":false,"types":[],"file":"\/s\/p\/spinac-1.png"},{"id":5282,"media_type":"image","label":null,"position":2,"disabled":false,"types":[],"file":"\/s\/p\/spinac-2.png"},{"id":5287,"media_type":"image","label":"Vyp\u00edna\u010d LISSMAC","position":7,"disabled":true,"types":["image","small_image","thumbnail","swatch_image"],"file":"\/s\/p\/spinac-2-perex-22.png"}],"tier_prices":[],"custom_attributes":[{"attribute_code":"short_description","value":"Origin\u00e1ln\u00ed n\u00e1hradn\u00ed d\u00edl k p\u00e1sov\u00e9 pile Lissmac 502\/2, 510\/2 a MBS 650 rok v\u00fdroby 2009-2016Specifikace: Pro p\u00e1sovou pilu 230V Pru\u017en\u00e1 nerezov\u00e1 zednick\u00e1 spojka pro ukotven\u00ed p\u0159\u00ed\u010dek k nosn\u00e9mu nebo obvodov\u00e9mu zdivu, vz\u00e1jemn\u00e9 spojen\u00ed nosn\u00fdch st\u011bn.<\/p> Prodej v balen\u00ed po 50 ks.<\/p>"},{"attribute_code":"image","value":"\/2\/7\/27_spojka-zdiva.png"},{"attribute_code":"url_key","value":"spojka-zdiva"},{"attribute_code":"gift_message_available","value":"2"},{"attribute_code":"table_technic","value":" Spojka zdiva se klade do tenkovrstv\u00e9 malty lo\u017en\u00fdch spar tv\u00e1rnic. Spojku lze ohnout do tvaru \"\"L\"\" a dodate\u010dn\u011b pou\u017e\u00edt na zakotven\u00ed p\u0159\u00ed\u010dky k nosn\u00e9 konstrukci (kotven\u00ed pomoc\u00ed h\u0159eb\u00edk\u016f s nerezovou \u00fapravou)<\/p>\r\n \u00a0<\/p>\r\n Ide\u00e1ln\u00ed pom\u016fcka pro zved\u00e1n\u00ed a manipulaci s Ytong stropn\u00edmi vlo\u017ekami. Dr\u017e\u00e1k lze pou\u017e\u00edt univerz\u00e1ln\u011b i pro jin\u00e9 typy stavebn\u00edch blok\u016f.<\/p>"},{"attribute_code":"image","value":"\/0\/3\/03_drzak-stropni-vlozky.png"},{"attribute_code":"url_key","value":"drzak-na-stropni-vlozky-400-600-mm"},{"attribute_code":"gift_message_available","value":"2"},{"attribute_code":"table_technic","value":" Vlastnosti:<\/strong> Podrobn\u00e9 informace o produktu nalezenete zde<\/a>.<\/p>\r\n
\r\nHmotnost: 0,5 kg
\r\nProdejn\u00ed jednotka: 1 kus
\r\nKe sta\u017een\u00ed:
\r\nProvozn\u00ed n\u00e1vod v PDF<\/a>
\r\nInformace o p\u00e1sov\u00e9 pile<\/a><\/p>\r\n"},{"attribute_code":"new","value":"0"},{"attribute_code":"description","value":"Origin\u00e1ln\u00ed n\u00e1hradn\u00ed d\u00edl k p\u00e1sov\u00e9 pile Lissmac 502\/2, 510\/2 a MBS 650 rok v\u00fdroby 2009-2016"},{"attribute_code":"small_image","value":"\/s\/p\/spinac-2-perex-22.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-2-perex-22.png"},{"attribute_code":"meta_keyword","value":"Hlavn\u00ed sp\u00edna\u010d k pile Lissmac"},{"attribute_code":"swatch_image","value":"\/s\/p\/spinac-2-perex-22.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":"Vyp\u00edna\u010d LISSMAC"},{"attribute_code":"small_image_label","value":"Vyp\u00edna\u010d LISSMAC"},{"attribute_code":"am_shipping_type","value":"220"},{"attribute_code":"thumbnail_label","value":"Vyp\u00edna\u010d LISSMAC"},{"attribute_code":"product_image_size","value":"0"}],"sortVar":1022531434},{"id":2311,"sku":"30011497","name":"Spojka zdiva - sada 50 kus\u016f","attribute_set_id":4,"price":1700,"status":1,"visibility":4,"type_id":"simple","created_at":"2022-05-06 11:40:15","updated_at":"2025-05-23 11:13:09","weight":2.5,"extension_attributes":{"website_ids":[1],"category_links":[{"position":16,"category_id":"2"},{"position":19,"category_id":"48"}]},"product_links":[],"options":[],"media_gallery_entries":[{"id":5195,"media_type":"image","label":null,"position":0,"disabled":false,"types":["image","small_image","thumbnail","swatch_image"],"file":"\/2\/7\/27_spojka-zdiva.png"},{"id":5055,"media_type":"image","label":null,"position":3,"disabled":false,"types":[],"file":"\/p\/a\/paska-003_1_ng3up6cwg1y3pvtf.jpg"},{"id":5057,"media_type":"image","label":null,"position":5,"disabled":false,"types":[],"file":"\/p\/a\/paska-001_1_1_z99o3ao3ngb0eeew.jpg"}],"tier_prices":[],"custom_attributes":[{"attribute_code":"short_description","value":"Pou\u017eit\u00ed:<\/h3>\r\n
Parametry:<\/h3>\r\n
\r\n
Parametry:<\/h3>\r\n
\r\n
Pou\u017eit\u00ed:<\/h3>\r\n
\r\n
Prodejn\u00ed jednotka je 1 role.<\/p>\r\nParametry:<\/h3>\r\n\r\n\r\n\r\n
\r\n\r\n
\r\n Z\u00e1kladn\u00ed \u00fadaje<\/strong><\/th>\r\n \u00a0\u00a0\u00a0Ytofor 40\u00a0\u00a0\u00a0<\/strong><\/th>\r\n \u00a0\u00a0\u00a0Ytofor 80\u00a0<\/strong><\/th>\r\n<\/tr>\r\n<\/thead> \r\n\r\n \r\n\r\n \r\n D\u00e9lka role [m]:<\/td>\r\n 30<\/td>\r\n 30<\/td>\r\n <\/tr>\r\n \r\n \u0160\u00ed\u0159ka role [mm]:<\/td>\r\n 40<\/td>\r\n 80<\/td>\r\n <\/tr>\r\n \r\n Tlou\u0161\u0165ka [mm]<\/td>\r\n 1,75<\/td>\r\n 1,75<\/td>\r\n <\/tr>\r\n \r\n Hmotnost role [kg]<\/td>\r\n 1,35<\/td>\r\n 2,66<\/td>\r\n <\/tr>\r\n <\/tbody>\r\n<\/table>\r\n"},{"attribute_code":"new","value":"0"},{"attribute_code":"description","value":"Ytofor - v\u00fdztu\u017en\u00fd p\u00e1s pro vyztu\u017een\u00ed nam\u00e1han\u00fdch st\u011bn. P\u00e1s je tvo\u0159en s\u00edt\u00ed spleten\u00fdch ocelov\u00fdch pozinkovan\u00fdch dr\u00e1tk\u016f, kter\u00e1 je obalena polypropylenov\u00fdmi prameny a p\u0159\u00ed\u010dn\u011b vyztu\u017eena sklen\u011bn\u00fdmi vl\u00e1kny."},{"attribute_code":"small_image","value":"\/2\/5\/25_ytofor_1_1.png"},{"attribute_code":"meta_title","value":"Ytofor - v\u00fdztu\u017en\u00fd p\u00e1s, \u0161. 80 a 40 mm"},{"attribute_code":"options_container","value":"container2"},{"attribute_code":"sale","value":"0"},{"attribute_code":"thumbnail","value":"\/2\/5\/25_ytofor_1_1.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","48"]},{"attribute_code":"required_options","value":"1"},{"attribute_code":"has_options","value":"1"},{"attribute_code":"sw_featured","value":"0"},{"attribute_code":"am_shipping_type","value":"220"},{"attribute_code":"product_image_size","value":"5"}],"sortVar":1077777333}] ;
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);
}
}