var tempbox = '
'; var alternativeProducts = [{"id":2374,"sku":"30011476","name":"Ytong svinovac\u00ed metr 7,5 m","attribute_set_id":4,"price":139,"status":1,"visibility":4,"type_id":"simple","created_at":"2023-11-24 14:26:30","updated_at":"2025-07-28 13:49:41","extension_attributes":{"website_ids":[1],"category_links":[{"position":0,"category_id":"50"}]},"product_links":[],"options":[],"media_gallery_entries":[{"id":5312,"media_type":"image","label":null,"position":1,"disabled":false,"types":["image","small_image","thumbnail","swatch_image"],"file":"\/s\/v\/svinovaci-metr-ytong.png"}],"tier_prices":[],"custom_attributes":[{"attribute_code":"short_description","value":"Nejd\u0159\u00edv m\u011b\u0159 potom \u0159e\u017e. S na\u0161\u00edm metrem zm\u011b\u0159\u00edte v\u0161e p\u0159esn\u011b.Vlastnosti:<\/strong> Podrobn\u00e9 informace o produktu nalezenete zde<\/a>.<\/p>\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":1042778732},{"id":2369,"sku":"30012741","name":"Spojka pro \u017ealuziov\u00fd kastl\u00edk","attribute_set_id":4,"price":240,"status":1,"visibility":4,"type_id":"simple","created_at":"2023-09-06 07:00:40","updated_at":"2025-07-28 13:52:16","weight":0.2,"extension_attributes":{"website_ids":[1],"category_links":[{"position":23,"category_id":"48"}]},"product_links":[],"options":[],"media_gallery_entries":[{"id":5308,"media_type":"image","label":null,"position":1,"disabled":false,"types":["image","thumbnail","swatch_image"],"file":"\/s\/p\/spojka-zaluzioby-kastlik.png"},{"id":5309,"media_type":"image","label":null,"position":2,"disabled":true,"types":["small_image"],"file":"\/s\/p\/spojka-zaluzioby-kastlik-menu.png"}],"tier_prices":[],"custom_attributes":[{"attribute_code":"short_description","value":"Origin\u00e1ln\u00ed komponenta pro spojov\u00e1n\u00ed Ytong \u017ealuziov\u00fdch kastl\u00edk\u016f
\r\nPou\u017eit\u00ed<\/strong>
\r\n- spojen\u00ed v p\u0159\u00edpad\u011b d\u00e9lkov\u00fdch \u00faprav (zkracov\u00e1n\u00ed) kastl\u00edku
\r\n- vz\u00e1jemn\u00e9 spojen\u00ed 2 kastl\u00edk\u016f
\r\n- napojen\u00ed \u017daluziov\u00e9ho segmentu (univerz\u00e1ln\u00ed prodlu\u017eovac\u00ed kus)
\r\n\r\nRozm\u011bry: 277 \u00d7 148 \u00d7 65 mm
\r\nHmotnost: 0,2 kg
\r\nProdejn\u00ed jednotka: 1 kus
\r\n\r\nPro spr\u00e1vnou mont\u00e1\u017e si prostudujte\u00a0Mont\u00e1\u017en\u00ed n\u00e1vod<\/a>.
\r\n\r\nProduktov\u00fd list - \u017daluziov\u00fd kastl\u00edk<\/a>
\r\n\r\n\r\n\u017daluziov\u00fd kastl\u00edk<\/a>"},{"attribute_code":"image","value":"\/s\/p\/spojka-zaluzioby-kastlik.png"},{"attribute_code":"url_key","value":"spojka-pro-zaluziovy-kastlik"},{"attribute_code":"gift_message_available","value":"2"},{"attribute_code":"new","value":"0"},{"attribute_code":"description","value":"Origin\u00e1ln\u00ed komponenta pro spojov\u00e1n\u00ed Ytong \u017ealuziov\u00fdch kastl\u00edk\u016f."},{"attribute_code":"small_image","value":"\/s\/p\/spojka-zaluzioby-kastlik-menu.png"},{"attribute_code":"meta_title","value":"Spojka pro \u017ealuziov\u00fd kastl\u00edk"},{"attribute_code":"options_container","value":"container2"},{"attribute_code":"sale","value":"0"},{"attribute_code":"thumbnail","value":"\/s\/p\/spojka-zaluzioby-kastlik.png"},{"attribute_code":"meta_keyword","value":"Spojka pro \u017ealuziov\u00fd kastl\u00edk"},{"attribute_code":"youtube_token","value":"igqBvPS2XqU"},{"attribute_code":"swatch_image","value":"\/s\/p\/spojka-zaluzioby-kastlik.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":["48"]},{"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":"0"}],"sortVar":1059267896}] ;
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);
}
}