var tempbox = '
'; var alternativeProducts = [{"id":2334,"sku":"lzicesilka","name":"Silka zednick\u00e1 l\u017e\u00edce","attribute_set_id":4,"price":682,"status":1,"visibility":4,"type_id":"configurable","created_at":"2022-05-11 11:13:32","updated_at":"2025-05-23 11:18:16","weight":2,"extension_attributes":{"website_ids":[1],"category_links":[{"position":7,"category_id":"2"},{"position":3,"category_id":"47"}],"configurable_product_options":[{"id":300,"attribute_id":"267","label":"\u0160\u00ed\u0159ka","position":0,"values":[{"value_index":241},{"value_index":242}],"product_id":2334}],"configurable_product_links":[2281,2292]},"product_links":[],"options":[],"media_gallery_entries":[{"id":5188,"media_type":"image","label":null,"position":0,"disabled":false,"types":["image","small_image","thumbnail"],"file":"\/2\/4\/24_silka-lzice.png"},{"id":5131,"media_type":"image","label":null,"position":1,"disabled":true,"types":[],"file":"\/z\/l\/zlice-silka-big_2.jpg"},{"id":5132,"media_type":"image","label":null,"position":2,"disabled":true,"types":[],"file":"\/z\/l\/zlice-silka-menu_2.jpg"},{"id":5133,"media_type":"image","label":null,"position":3,"disabled":true,"types":[],"file":"\/z\/l\/zlice-silka_2.jpg"}],"tier_prices":[],"custom_attributes":[{"attribute_code":"short_description","value":"Zednick\u00e1 l\u017e\u00edce k nan\u00e1\u0161en\u00ed tenkovrstv\u00e9 malty na v\u00e1penop\u00edskov\u00e9 tv\u00e1rnice Silka.<\/p>"},{"attribute_code":"table_technic","value":"
k p\u0159esn\u00e9mu a rovnom\u011brn\u00e9mu nan\u00e1\u0161en\u00ed malty Silka FIX N210 na v\u00e1penop\u00edskov\u00e9 tv\u00e1rnice Silka. Zaji\u0161\u0165uje optim\u00e1ln\u00ed spot\u0159ebu malty.<\/p><\/p>
<\/ul><\/p>"},{"attribute_code":"url_key","value":"zednicka-lzice-pro-silku"},{"attribute_code":"gift_message_available","value":"2"},{"attribute_code":"new","value":"0"},{"attribute_code":"image","value":"\/2\/4\/24_silka-lzice.png"},{"attribute_code":"options_container","value":"container2"},{"attribute_code":"small_image","value":"\/2\/4\/24_silka-lzice.png"},{"attribute_code":"sale","value":"0"},{"attribute_code":"meta_title","value":"Silka zednick\u00e1 l\u017e\u00edce"},{"attribute_code":"description","value":"Zednick\u00e1 l\u017e\u00edce pro Silku k nan\u00e1\u0161en\u00ed Silka zdic\u00ed malty a jej\u00edmu p\u0159esn\u00e9mu a rovnom\u011brn\u00e9mu rozm\u00edst\u011bn\u00ed po cel\u00e9m povrchu tv\u00e1rnic. Zaji\u0161\u0165uje optim\u00e1ln\u00ed spot\u0159ebu malty."},{"attribute_code":"thumbnail","value":"\/2\/4\/24_silka-lzice.png"},{"attribute_code":"meta_keyword","value":"Silka zednick\u00e1 l\u017e\u00edce"},{"attribute_code":"meta_description","value":"Silka zednick\u00e1 l\u017e\u00edce Specifikace:\r\n \r\n Dod\u00e1v\u00e1 se v rozm\u011brech pro \u0161\u00ed\u0159ky tv\u00e1rnic Silka 180 a 240 mm.\r\n \r\n Pou\u017eit\u00ed:\r\n \r\n Zednick\u00e1 l\u017e\u00edce pro Silku k nan\u00e1\u0161en\u00ed Silka zdic\u00ed malty a jej\u00edmu p\u0159esn\u00e9mu a rovnom\u011brn\u00e9mu rozm\u00edst\u011bn\u00ed po cel\u00e9m povrchu tv\u00e1rnic. Zaji\u0161\u0165uje opt"},{"attribute_code":"tax_class_id","value":"2"},{"attribute_code":"msrp_display_actual_price_type","value":"0"},{"attribute_code":"label_znacka_firma","value":"245"},{"attribute_code":"category_ids","value":["2","47"]},{"attribute_code":"required_options","value":"1"},{"attribute_code":"sw_featured","value":"0"},{"attribute_code":"has_options","value":"1"},{"attribute_code":"am_shipping_type","value":"220"},{"attribute_code":"product_image_size","value":"5"}],"sortVar":1069975062},{"id":2280,"sku":"30004311","name":"H\u0159eb\u00edk 4\/70 (balen\u00ed 250 ks)","attribute_set_id":4,"price":585,"status":1,"visibility":4,"type_id":"simple","created_at":"2022-05-06 11:39:38","updated_at":"2025-05-23 10:46:16","weight":5,"extension_attributes":{"website_ids":[1],"category_links":[{"position":24,"category_id":"2"},{"position":16,"category_id":"48"}]},"product_links":[],"options":[],"media_gallery_entries":[{"id":5183,"media_type":"image","label":null,"position":0,"disabled":false,"types":["image","small_image","thumbnail","swatch_image"],"file":"\/2\/1\/21_hrebik.png"},{"id":4965,"media_type":"image","label":null,"position":1,"disabled":true,"types":[],"file":"\/h\/r\/hrebik-4-70-big_bjttscshgzziqumz.jpg"},{"id":4964,"media_type":"image","label":null,"position":2,"disabled":true,"types":[],"file":"\/h\/r\/hrebik-4-70_bqnv3cqptrnoxiak.png"},{"id":4966,"media_type":"image","label":null,"position":3,"disabled":true,"types":[],"file":"\/h\/r\/hrebik-4-70-menu_dsoljqt2m2lj6vme.jpg"}],"tier_prices":[],"custom_attributes":[{"attribute_code":"short_description","value":"
H\u0159eb\u00edk 4\/70 do p\u00f3robetonu Ytong s plochou hlavi\u010dkou. Prodej v balen\u00ed po 250 ks.<\/p><\/p>"},{"attribute_code":"table_technic","value":"
Pro jednoduch\u00e9 upev\u0148ov\u00e1n\u00ed prvk\u016f do p\u00f3robetonu a jin\u00fdch materi\u00e1l\u016f z leh\u010den\u00e9ho betonu.<\/p>\r\n
Po\u017e\u00e1rn\u00ed kotva, speci\u00e1ln\u011b vyvinut\u00e1 pro kotven\u00ed tepeln\u011bizola\u010dn\u00edch desek Multipor do stropn\u00ed konstrukce.<\/strong><\/p>\r\n D\u00e9lka kotvy: 200 mm<\/strong><\/p>\r\n V\u00fdrobce: Rawlplug Parametry:<\/strong><\/p>\r\n \u00a0<\/p>\r\n \u00a0<\/p>\r\n Pozn. V tabulce je po\u010d\u00edt\u00e1no s tlou\u0161\u0165kou lehk\u00e9 malty Multipor ttol<\/sub> = 5 mm<\/p>\r\n Hloubka otvoru mus\u00ed b\u00fdt min. o 5 mm hlub\u0161\u00ed<\/p>\r\n \u00a0<\/p>\r\n Ur\u010den\u00ed efektivn\u00ed d\u00e9lky kotvy<\/strong>: LD<\/sub>= hnom<\/sub> + ttol<\/sub> + hD<\/sub><\/p>\r\n LD<\/sub><\/strong> - skute\u010dn\u00e1 d\u00e9lka kotvy<\/p>\r\n hnom<\/sub><\/strong> - nomin\u00e1ln\u00ed kotevn\u00ed hloubka (nen\u00ed-li uvedeno jinak, odpov\u00edd\u00e1 nomin\u00e1ln\u00ed kotevn\u00ed hloubka hnom efektivn\u00ed kotevn\u00ed hloubce hef<\/sub>)<\/p>\r\n ttol<\/sub><\/strong> - vyrovn\u00e1vac\u00ed tolerance (tlou\u0161\u0165ka ne\u00fanosn\u00e9 vrstvy; tlou\u0161\u0165ka vrstvy lehk\u00e9 malty Multipor po p\u0159itisknut\u00ed desky Multipor na podklad; tlou\u0161\u0165ka dodate\u010dn\u00e9ho vyrovn\u00e1n\u00ed st\u011bny)<\/p>\r\n hD<\/sub><\/strong> - tlou\u0161\u0165ka desky Multipor\"<\/p>\r\n \u00a0<\/p>"},{"attribute_code":"url_key","value":"multipor-pozarni-kotva"},{"attribute_code":"gift_message_available","value":"2"},{"attribute_code":"new","value":"0"},{"attribute_code":"image","value":"\/1\/3\/13_mutlipor-pozarni-kotva.png"},{"attribute_code":"options_container","value":"container2"},{"attribute_code":"small_image","value":"\/1\/3\/13_mutlipor-pozarni-kotva.png"},{"attribute_code":"sale","value":"0"},{"attribute_code":"description","value":"Po\u017e\u00e1rn\u00ed kotva, speci\u00e1ln\u011b vyvinut\u00e1 pro kotven\u00ed tepeln\u011bizola\u010dn\u00edch desek Multipor do stropn\u00ed konstrukce."},{"attribute_code":"thumbnail","value":"\/1\/3\/13_mutlipor-pozarni-kotva.png"},{"attribute_code":"swatch_image","value":"\/1\/3\/13_mutlipor-pozarni-kotva.png"},{"attribute_code":"tax_class_id","value":"2"},{"attribute_code":"msrp_display_actual_price_type","value":"0"},{"attribute_code":"label_znacka_firma","value":"244"},{"attribute_code":"category_ids","value":["2","48","52"]},{"attribute_code":"required_options","value":"0"},{"attribute_code":"sw_featured","value":"0"},{"attribute_code":"has_options","value":"0"},{"attribute_code":"am_shipping_type","value":"220"},{"attribute_code":"product_image_size","value":"5"}],"sortVar":1138697206},{"id":2376,"sku":"30012888","name":"Ytong helmi\u010dka - p\u0159\u00edv\u011bsek","attribute_set_id":4,"price":39,"status":1,"visibility":4,"type_id":"simple","created_at":"2023-11-24 14:48:18","updated_at":"2025-07-28 13:51:02","extension_attributes":{"website_ids":[1],"category_links":[{"position":0,"category_id":"50"}]},"product_links":[],"options":[],"media_gallery_entries":[{"id":5316,"media_type":"image","label":null,"position":1,"disabled":false,"types":["image","small_image","thumbnail","swatch_image"],"file":"\/p\/r\/privesek-ytong.png"}],"tier_prices":[],"custom_attributes":[{"attribute_code":"short_description","value":"Myslete na bezpe\u010dnost a m\u011bjte svoji helmi\u010dku v\u017edy p\u0159i sob\u011b.\r\n
\r\nProdej: balen\u00ed 100 ks<\/p>\r\n\r\n\r\n
\r\n
\r\n Doporu\u010den\u00e1 d\u00e9lka po\u017e\u00e1rn\u00edch kotev<\/th><\/tr><\/thead> \r\n \r\n \r\n Materi\u00e1l
\r\n podkladu\r\n <\/th>\r\n \r\n \u017eelezobeton
\r\n (C20\/25)\r\n <\/th>\r\n d\u0159evo<\/th>\r\n <\/tr>\r\n \r\n \r\n tlou\u0161\u0165ka desek
\r\n Multipor\r\n <\/th>\r\n d\u00e9lka kotev (mm)<\/th>\r\n <\/tr>\r\n \r\n 50<\/td>\r\n 90<\/td>\r\n 90<\/td>\r\n <\/tr>\r\n \r\n 60<\/td>\r\n 100<\/td>\r\n 100<\/td>\r\n <\/tr>\r\n \r\n 80<\/td>\r\n 120<\/td>\r\n 120<\/td>\r\n <\/tr>\r\n \r\n 100<\/td>\r\n 140<\/td>\r\n 140<\/td>\r\n <\/tr>\r\n \r\n 120<\/td>\r\n 160<\/td>\r\n 160<\/td>\r\n <\/tr>\r\n \r\n 140<\/td>\r\n 180<\/td>\r\n 180<\/td>\r\n <\/tr>\r\n \r\n 160<\/td>\r\n 200<\/td>\r\n 200<\/td>\r\n <\/tr>\r\n \r\n 180<\/td>\r\n 220<\/td>\r\n 220<\/td>\r\n <\/tr>\r\n \r\n 200<\/td>\r\n 240<\/td>\r\n 240<\/td>\r\n <\/tr>\r\n \r\n \r\n Zp\u016fsob
\r\n vrt\u00e1n\u00ed\r\n <\/td>\r\n \r\n s
\r\n p\u0159\u00edklepem\r\n <\/td>\r\n \r\n bez
\r\n p\u0159\u00edklepu\r\n <\/td>\r\n <\/tr>\r\n <\/tbody>\r\n<\/table>\r\n\r\n
\r\nPlastov\u00fd p\u0159\u00edv\u011bsek ve tvaru helmy."},{"attribute_code":"url_key","value":"ytong-helmicka-privesek"},{"attribute_code":"gift_message_available","value":"2"},{"attribute_code":"new","value":"0"},{"attribute_code":"image","value":"\/p\/r\/privesek-ytong.png"},{"attribute_code":"options_container","value":"container2"},{"attribute_code":"small_image","value":"\/p\/r\/privesek-ytong.png"},{"attribute_code":"sale","value":"0"},{"attribute_code":"meta_title","value":"Ytong helmi\u010dka - p\u0159\u00edv\u011bsek"},{"attribute_code":"description","value":"Myslete na bezpe\u010dnost a m\u011bjte svoji helmi\u010dku v\u017edy p\u0159i sob\u011b."},{"attribute_code":"thumbnail","value":"\/p\/r\/privesek-ytong.png"},{"attribute_code":"meta_keyword","value":"Ytong helmi\u010dka - p\u0159\u00edv\u011bsek"},{"attribute_code":"meta_description","value":"Ytong helmi\u010dka - p\u0159\u00edv\u011bsek "},{"attribute_code":"swatch_image","value":"\/p\/r\/privesek-ytong.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":["50"]},{"attribute_code":"required_options","value":"0"},{"attribute_code":"sw_featured","value":"0"},{"attribute_code":"has_options","value":"0"},{"attribute_code":"am_shipping_type","value":"220"},{"attribute_code":"product_image_size","value":"0"}],"sortVar":1158831183}] ;
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);
var html = tempbox;
html = html.replace(/{LINK}/g, link);
html = html.replace(/{IMAGE}/g, image);
html = html.replace(/{NAME}/g, name);
html = html.replace(/{PRICE}/g, price);
document.querySelector("#alternativeProductContainer").innerHTML += html;
}
}