Provozn\u00ed n\u00e1vod v PDF<\/a><\/p>\r\nInformace o p\u00e1sov\u00e9 pile<\/a><\/p>"},{"attribute_code":"image","value":"\/k\/o\/koncovy-spinac-2-.png"},{"attribute_code":"url_key","value":"koncovy-spinac-k-pile-lissmac-2"},{"attribute_code":"gift_message_available","value":"2"},{"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"},{"attribute_code":"small_image","value":"\/k\/o\/koncovy-spinac-2-.png"},{"attribute_code":"meta_title","value":"Koncov\u00fd sp\u00edna\u010d k pile Lissmac"},{"attribute_code":"options_container","value":"container2"},{"attribute_code":"sale","value":"0"},{"attribute_code":"thumbnail","value":"\/k\/o\/koncovy-spinac-2-.png"},{"attribute_code":"meta_keyword","value":"Koncov\u00fd sp\u00edna\u010d k pile Lissmac"},{"attribute_code":"youtube_token","value":"w0MB_0QJWvk"},{"attribute_code":"swatch_image","value":"\/k\/o\/koncovy-spinac-2-.png"},{"attribute_code":"meta_description","value":"Koncov\u00fd sp\u00edna\u010d k pile Lissmac "},{"attribute_code":"multipor_dealers","value":"0"},{"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":"url_path","value":"koncovy-spinac-k-pile-lissmac-2"},{"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":"Koncov\u00fd sp\u00edna\u010d"},{"attribute_code":"small_image_label","value":"Koncov\u00fd sp\u00edna\u010d"},{"attribute_code":"am_shipping_type","value":"220"},{"attribute_code":"thumbnail_label","value":"Koncov\u00fd sp\u00edna\u010d"},{"attribute_code":"product_image_size","value":"0"},{"attribute_code":"velikost_strih","value":"268"}],"sortVar":1123500064}] ;
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;
}
}