var tempbox = '
'; var alternativeProducts = [{"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-2009Specifikace:<\/strong> Pro p\u00e1sovou pilu 230V Vrt\u00e1k do p\u00f3robetonu pro vrt\u00e1n\u00ed otvor\u016f do zdiva Ytong. Dod\u00e1v\u00e1 se v\u00a0pr\u016fm\u011brech 62 (pro krabice vyp\u00edna\u010d\u016f), 82 mm (pro krabice rozd\u011blova\u010d\u016f, z\u00e1suvek a vyp\u00edna\u010d\u016f pod om\u00edtku).<\/p>"},{"attribute_code":"image","value":"\/0\/2\/02_vrtak-do-porobetonu_2_1.png"},{"attribute_code":"url_key","value":"vrtak-do-porobetonu"},{"attribute_code":"gift_message_available","value":"2"},{"attribute_code":"table_technic","value":" K dispozici je vrt\u00e1k pr\u016fm\u011bru 62 mm (pro krabice vyp\u00edna\u010d\u016f) a 82 mm (pro krabice rozd\u011blova\u010d\u016f, z\u00e1suvek a vyp\u00edna\u010d\u016f pod om\u00edtkou)<\/p>\r\n univerz\u00e1ln\u00ed kovov\u00fd vrt\u00e1k pr\u016fm\u011br 62 a 82 mm<\/p>"},{"attribute_code":"new","value":"0"},{"attribute_code":"small_image","value":"\/0\/2\/02_vrtak-do-porobetonu_2_1.png"},{"attribute_code":"meta_title","value":"Vrt\u00e1k do p\u00f3robetonu"},{"attribute_code":"options_container","value":"container2"},{"attribute_code":"sale","value":"0"},{"attribute_code":"thumbnail","value":"\/0\/2\/02_vrtak-do-porobetonu_2_1.png"},{"attribute_code":"meta_keyword","value":"Vrt\u00e1k do p\u00f3robetonu"},{"attribute_code":"youtube_token","value":"yohQYpaJUCI"},{"attribute_code":"swatch_image","value":"\/0\/2\/02_vrtak-do-porobetonu_2_1.png"},{"attribute_code":"meta_description","value":"Vrt\u00e1k do p\u00f3robetonu "},{"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":"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":1059793409},{"id":2358,"sku":"300107","name":"Ytofor - v\u00fdztu\u017en\u00fd p\u00e1s","attribute_set_id":4,"price":1333,"status":1,"visibility":4,"type_id":"configurable","created_at":"2022-10-03 12:23:48","updated_at":"2022-10-03 12:54:45","weight":1.62,"extension_attributes":{"website_ids":[1],"category_links":[{"position":0,"category_id":"2"},{"position":21,"category_id":"48"}],"configurable_product_options":[{"id":304,"attribute_id":"285","label":"\u0160\u00ed\u0159ka","position":0,"values":[{"value_index":256},{"value_index":257}],"product_id":2358}],"configurable_product_links":[2357,2269]},"product_links":[],"options":[],"media_gallery_entries":[{"id":5242,"media_type":"image","label":null,"position":1,"disabled":false,"types":["image","small_image","thumbnail"],"file":"\/2\/5\/25_ytofor_1_1.png"}],"tier_prices":[],"custom_attributes":[{"attribute_code":"short_description","value":"Ytofor - v\u00fdztu\u017en\u00fd p\u00e1s pro vyztu\u017een\u00ed nam\u00e1han\u00fdch st\u011bn.\r\nP\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.\r\nPou\u017e\u00edv\u00e1 se pro vyztu\u017een\u00ed lo\u017en\u00e9 sp\u00e1ry obvodov\u00fdch i vnit\u0159n\u00edch nosn\u00fdch a nenosn\u00fdch st\u011bn konstrukce nebo jej\u00edch \u010d\u00e1st\u00ed.\r\nProdejn\u00ed jednotka je 1 role."},{"attribute_code":"image","value":"\/2\/5\/25_ytofor_1_1.png"},{"attribute_code":"url_key","value":"ytofor"},{"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 Specifikace:<\/strong> d\u00edl se skl\u00e1d\u00e1 z kryc\u00edch v\u00edk (2 ks), nap\u00edn\u00e1ku a st\u0159edic\u00edho \u010depu
\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":1041198653},{"id":2350,"sku":"vrtak","name":"Vrt\u00e1k do p\u00f3robetonu","attribute_set_id":4,"price":273,"status":1,"visibility":4,"type_id":"configurable","created_at":"2022-08-18 09:54:50","updated_at":"2023-01-02 14:12:43","weight":2,"extension_attributes":{"website_ids":[1],"category_links":[{"position":5,"category_id":"2"},{"position":2,"category_id":"47"}],"configurable_product_options":[{"id":305,"attribute_id":"277","label":"Pr\u016fm\u011br vrt\u00e1ku","position":0,"values":[{"value_index":247},{"value_index":248},{"value_index":249}],"product_id":2350}],"configurable_product_links":[2351,2356,2352]},"product_links":[],"options":[],"media_gallery_entries":[{"id":5223,"media_type":"image","label":null,"position":1,"disabled":false,"types":["image","small_image","thumbnail","swatch_image"],"file":"\/0\/2\/02_vrtak-do-porobetonu_2_1.png"}],"tier_prices":[],"custom_attributes":[{"attribute_code":"short_description","value":"Pou\u017eit\u00ed:<\/h3>\r\n
Parametry:<\/h3>\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":"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":1099622553},{"id":2368,"sku":"30004978","name":"Centrovac\u00ed kol\u00edk ","attribute_set_id":4,"price":990,"status":1,"visibility":4,"type_id":"simple","created_at":"2023-04-03 13:51:30","updated_at":"2023-04-06 06:33:41","weight":0.5,"extension_attributes":{"website_ids":[1],"category_links":[{"position":0,"category_id":"51"}]},"product_links":[],"options":[],"media_gallery_entries":[{"id":5297,"media_type":"image","label":null,"position":0,"disabled":false,"types":[],"file":"\/c\/e\/centrkolik.png"},{"id":5294,"media_type":"image","label":null,"position":1,"disabled":false,"types":[],"file":"\/c\/e\/centrkolik-3.png"},{"id":5295,"media_type":"image","label":null,"position":2,"disabled":false,"types":[],"file":"\/c\/e\/centrkolik-2.png"},{"id":5296,"media_type":"image","label":"Centrkol\u00edk","position":3,"disabled":true,"types":["image","small_image","thumbnail","swatch_image"],"file":"\/c\/e\/centrkolik-perex.png"},{"id":5298,"media_type":"image","label":null,"position":4,"disabled":false,"types":[],"file":"\/p\/i\/pila2.jpg"},{"id":5299,"media_type":"image","label":null,"position":5,"disabled":false,"types":[],"file":"\/p\/i\/pila.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
\r\n\u2022\tCentrovac\u00ed kol\u00edk (n\u011bkdy ozna\u010dov\u00e1n tak\u00e9 jako Sv\u011brac\u00ed \u0161roub na stole pily)
\r\n\u2022\t\u010c\u00edslo v\u00fdrobku dle seznamu ND Lissmac: 680010, polo\u017eka \u010d. 67 (67.1 + 67.2 + 67.3)
"},{"attribute_code":"image","value":"\/c\/e\/centrkolik-perex.png"},{"attribute_code":"url_key","value":"centrovaci-kolik"},{"attribute_code":"gift_message_available","value":"2"},{"attribute_code":"table_technic","value":"
\r\nObjednac\u00ed \u010d\u00edslo Xella:<\/strong> 30004978
\r\nHmotnost:<\/strong> 0,5 kg
\r\nProdejn\u00ed jednotka:<\/strong> 1 kus
\r\nProvozn\u00ed n\u00e1vod v PDF<\/a>
\r\nV\u00edce o pile<\/a><\/p>\r\n"},{"attribute_code":"new","value":"0"},{"attribute_code":"small_image","value":"\/c\/e\/centrkolik-perex.png"},{"attribute_code":"meta_title","value":"Centrovac\u00ed kol\u00edk "},{"attribute_code":"options_container","value":"container2"},{"attribute_code":"sale","value":"0"},{"attribute_code":"thumbnail","value":"\/c\/e\/centrkolik-perex.png"},{"attribute_code":"meta_keyword","value":"Centrovac\u00ed kol\u00edk "},{"attribute_code":"youtube_token","value":"w0MB_0QJWvk"},{"attribute_code":"swatch_image","value":"\/c\/e\/centrkolik-perex.png"},{"attribute_code":"meta_description","value":"Centrovac\u00ed kol\u00edk "},{"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":"Centrkol\u00edk"},{"attribute_code":"small_image_label","value":"Centrkol\u00edk"},{"attribute_code":"am_shipping_type","value":"220"},{"attribute_code":"thumbnail_label","value":"Centrkol\u00edk"},{"attribute_code":"product_image_size","value":"0"}],"sortVar":1149580470}] ;
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);
}
}