\u0161estihrann\u00e9 uchycen\u00ed do b\u011b\u017en\u00fdch typ\u016f ru\u010dn\u00edch vrta\u010dek<\/li>\r\n<\/ul>"},{"attribute_code":"new","value":"0"},{"attribute_code":"description","value":"Stavebn\u00ed m\u00edchadlo, vhodn\u00e9 pro p\u0159\u00edpravu om\u00edtek, s\u00e1dry, barev, nivela\u010dn\u00edch hmot s minim\u00e1ln\u00ed tvorbou bublin. M\u00edchadlo pasuje do b\u011b\u017en\u00fdch typ\u016f elektrick\u00fdch ru\u010dn\u00edch vrta\u010dek."},{"attribute_code":"small_image","value":"\/1\/5\/15_misidlo.png"},{"attribute_code":"meta_title","value":"M\u00edchadlo"},{"attribute_code":"options_container","value":"container2"},{"attribute_code":"sale","value":"0"},{"attribute_code":"thumbnail","value":"\/1\/5\/15_misidlo.png"},{"attribute_code":"meta_keyword","value":"M\u00edchadlo pro p\u0159\u00edpravu tenkovrstv\u00e9 spojovac\u00ed malty Ytong. K jeho pohonu se pou\u017e\u00edvaj\u00ed v\u0161echny b\u011b\u017en\u00e9 typy elektrick\u00fdch ru\u010dn\u00edch vrta\u010dek."},{"attribute_code":"youtube_token","value":"SRmCGwr-CjA"},{"attribute_code":"swatch_image","value":"\/1\/5\/15_misidlo.png"},{"attribute_code":"meta_description","value":"M\u00edchadlo pro p\u0159\u00edpravu tenkovrstv\u00e9 spojovac\u00ed malty Ytong. K jeho pohonu se pou\u017e\u00edvaj\u00ed v\u0161echny b\u011b\u017en\u00e9 typy elektrick\u00fdch ru\u010dn\u00edch vrta\u010dek."},{"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":1032643095},{"id":2371,"sku":"30012882","name":"Pono\u017eky Ytong","attribute_set_id":4,"price":159,"status":1,"visibility":4,"type_id":"simple","created_at":"2023-11-24 14:08:58","updated_at":"2025-07-28 13:47:10","extension_attributes":{"website_ids":[1],"category_links":[{"position":0,"category_id":"50"}]},"product_links":[],"options":[],"media_gallery_entries":[{"id":5311,"media_type":"image","label":null,"position":1,"disabled":false,"types":["image","small_image","thumbnail","swatch_image"],"file":"\/p\/o\/ponozky-ytong.png"}],"tier_prices":[],"custom_attributes":[{"attribute_code":"short_description","value":"Pono\u017eky s unik\u00e1tn\u00edm designem Ytong.
\r\nBarva \u017elut\u00e1 s \u010dern\u00fdm vzorem. 80 % bavlna, 15 % nylon, 5 % elasten "},{"attribute_code":"image","value":"\/p\/o\/ponozky-ytong.png"},{"attribute_code":"url_key","value":"ponozky-ytong"},{"attribute_code":"gift_message_available","value":"2"},{"attribute_code":"new","value":"0"},{"attribute_code":"description","value":"Pono\u017eky s unik\u00e1tn\u00edm designem Ytong."},{"attribute_code":"small_image","value":"\/p\/o\/ponozky-ytong.png"},{"attribute_code":"meta_title","value":"Pono\u017eky Ytong"},{"attribute_code":"options_container","value":"container2"},{"attribute_code":"sale","value":"0"},{"attribute_code":"thumbnail","value":"\/p\/o\/ponozky-ytong.png"},{"attribute_code":"meta_keyword","value":"Pono\u017eky Ytong"},{"attribute_code":"swatch_image","value":"\/p\/o\/ponozky-ytong.png"},{"attribute_code":"meta_description","value":"Pono\u017eky Ytong "},{"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":"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":103368657},{"id":2312,"sku":"30011530","name":"Ta\u0161ka Ytong","attribute_set_id":4,"price":437,"status":1,"visibility":4,"type_id":"simple","created_at":"2022-05-06 11:40:16","updated_at":"2025-05-23 11:13:44","weight":1,"extension_attributes":{"website_ids":[1],"category_links":[{"position":15,"category_id":"2"},{"position":0,"category_id":"50"}]},"product_links":[],"options":[],"media_gallery_entries":[{"id":5158,"media_type":"image","label":null,"position":0,"disabled":false,"types":["image","small_image","thumbnail","swatch_image"],"file":"\/0\/0\/00_promovak-taska.png"},{"id":5064,"media_type":"image","label":null,"position":1,"disabled":true,"types":[],"file":"\/y\/t\/ytong-promovak_2_wrbsqrvhtwqvcrxk.jpg"},{"id":5060,"media_type":"image","label":null,"position":2,"disabled":true,"types":[],"file":"\/p\/r\/promovak_taska_main_3vw28qk0nenmbgyj.jpg"},{"id":5061,"media_type":"image","label":null,"position":3,"disabled":true,"types":[],"file":"\/p\/r\/promovak_taska_category_j4opsj2zsvm6dgaj.jpg"},{"id":5062,"media_type":"image","label":null,"position":4,"disabled":true,"types":[],"file":"\/y\/t\/ytong-promovak_1_1_jwgqmaa24compmi0.jpg"},{"id":5063,"media_type":"image","label":null,"position":5,"disabled":true,"types":[],"file":"\/y\/t\/ytong-taska_1_1_7ym3meuqh66qys8l.png"}],"tier_prices":[],"custom_attributes":[{"attribute_code":"short_description","value":"Praktick\u00e1 ta\u0161ka na n\u00e1\u0159ad\u00ed.<\/p>"},{"attribute_code":"image","value":"\/0\/0\/00_promovak-taska.png"},{"attribute_code":"url_key","value":"taska-ytong"},{"attribute_code":"gift_message_available","value":"2"},{"attribute_code":"table_technic","value":"
Parametry:<\/h3>\r\n\r\n- barva: \u010dern\u00e1 s logem Ytong<\/li>\r\n
- materi\u00e1l: 100% PES.<\/li>\r\n<\/ul>"},{"attribute_code":"new","value":"0"},{"attribute_code":"description","value":"Praktick\u00e1 ta\u0161ka na n\u00e1\u0159ad\u00ed."},{"attribute_code":"small_image","value":"\/0\/0\/00_promovak-taska.png"},{"attribute_code":"options_container","value":"container2"},{"attribute_code":"sale","value":"0"},{"attribute_code":"thumbnail","value":"\/0\/0\/00_promovak-taska.png"},{"attribute_code":"swatch_image","value":"\/0\/0\/00_promovak-taska.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","50"]},{"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":1079149484}] ;
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);
}
}