Predstavitvena prenova · podatki iz javnega zajema 17. 9. 2026 · cene in zalogo pred objavo potrdite
Lekarna pri Kranjskem orlu

Obrazci

Obrazci V spletni lekarni pri Kranjskem orlu vas pozdravlja naša ekipa Lista želja Moj račun Prijava Išči Išči 04 236 17 10 0 izdelkov 0,00€ Košarica je prazna Obrazec za vračilo blaga Glavni trg 21 4000 Kranj 04 236 17 10 info@lekarnaorel.si Ministrstvo za zdravje Štefanova ulica 5 1000 Ljubljana 01 478 60 01 Gp.mz@gov.si Informacije Kazalniki kakovosti O nas Pogoji poslovanja Varovanje zasebnosti Zasebnost in piškotki Obrazci Moj račun Blagajna Lista želja Moj račun Prijava Meni Vprašanja farmacevtu Blog Postavite vprašanje Blagovne znamke Lekarna pri kranjskem orlu deluje v skladu s predpisano zakonodajo Smo člani združenja Lekarne PLUS ©LEKARNA PRI KRANJSKEM ORLU 2021 ARS LUNA var classEcommerceJS = function($){ "use strict"; var subdir = arsluna.options.subdir, icon_path = arsluna.options.iconPath, cart = ""; function isEmpty(elem) { var is_empty = true; elem.each(function() { if(isNumber($(this).val()) && parseFloat($(this).val()) > 0) { is_empty = false; return false; } }); return is_empty; } function pFormAddToCart(form){ var quantity_input = form.find(".product-quantity"), is_empty = false, p_data, options_ok = true, input_type; form.find('[name="kupim"]').val("1"); p_data = form.serializeJSON(); is_empty = isEmpty(quantity_input); if(is_empty) { messageBox.create(''); messageBox.setContent('' + ' ' + 'Ni vnesene količine nakupa!' + ' ' + ' ' + ' Nadaljuj ' + ' ' ); return false; } form.find(".product-options .input-required").each(function(){ input_type = $(this).data("input_type"); switch (input_type) { case 'select': if (!isNumber($(this).find('select').val())) { options_ok = false; } break; default: if ($(this).find('[type="radio"]:checked').length === 0) { options_ok = false; } break; } if (!options_ok){ messageBox.create(''); messageBox.setContent('' + ' ' + 'Opcija ' + $(this).data("option_name") + ' ni izbrana' + ' ' + ' ' + ' Nadaljuj ' + ' ' ); return false; } }); form.find(".attribute .input-required").each(function(){ input_type = $(this).data("input_type"); switch (input_type) { case 'select': if (!isNumber($(this).find('select').val())) { options_ok = false; } break; default: if ($(this).find('[type="radio"]:checked').length === 0) { options_ok = false; } break; } if (!options_ok){ messageBox.create(''); messageBox.setContent('' + ' ' + 'Opcija ' + $(this).data("attribute_name") + ' ni izbrana' + ' ' + ' ' + ' Nadaljuj ' + ' ' ); return false; } }); if (!isNumber(form.find('[name="art"]').val())) { messageBox.create(''); messageBox.setContent('' + ' ' + 'Prišlo je do težave pri pridobivanju izdelka. Prosimo vas, da nas kontaktirate in sporočite napako.' + ' ' + ' ' + ' Nadaljuj ' + ' ' ); return false; } if (!options_ok) { return false; } $.ajax({ async : true, type : "POST", url : arsluna.options.subdir + "content/ecommerce/arsluna.ecommerce.post.php", data : { "p_request" : "add_to_cart", "p_data" : JSON.stringify(p_data), "p_timestamp" : new Date().getTime() } }).done(function (result) { var variant = $("#nav-cart-wrapper").attr("data-variant"), paramsArrayId = $("#nav-cart-wrapper").attr("data-params_array_id"), cartMessageBox = $("#nav-cart-wrapper").data("message_box"), url; if (result.status === 0) { switch (cartMessageBox) { case 1: showCartInfo(result.msg); break; default: messageBox.create(''); messageBox.setContent(result.msg); } } else { messageBox.create(''); messageBox.setContent(result.msg); return false; } if(form.find(".product-quantity").length > 1) { form.find(".product-quantity").val(""); } url = arsluna.options.subdir + "content/ecommerce/arsluna.ecommerce.get.php?p_request=fmCartSmallGet&p_cart=" + result.data.cart + "&variant=" + variant + "¶ms_array_id=" + paramsArrayId; $('#nav-cart-wrapper').load(url + ' #nav-cart'); $('.nav-cart-wrapper').each(function() { var navCart = $(this).find('.nav-cart').first(), navCartId = navCart.attr('id'), paramsArrayId = $(this).attr("data-params_array_id"), functionName = 'initHoverIntent'; if (paramsArrayId.length > 0) { functionName = functionName + '_' + paramsArrayId; } variant = $(this).attr("data-variant"); if ($(this).attr('id') !== 'nav-cart-wrapper') { url = arsluna.options.subdir + "content/ecommerce/arsluna.ecommerce.get.php?p_request=fmCartSmallGet&p_cart=" + result.data.cart + "&variant=" + variant + "¶ms_array_id=" + paramsArrayId; $(this).load(url + ' #' + navCartId, function(){ if (typeof window[functionName] === "function") { window[functionName](selectorId); } }); } }); }).fail(function(r,e) { messageBox.create(''); messageBox.setContent('' + ' ' + 'Prišlo je do napake pri dodajanju izdelka v košarico' + ' ' + ' ' + ' ' + ' Nadaljuj ' + ' ' + ' ' ); console.log(r); console.log(e); }); } // END pFormAddToCart function showCartInfo(info) { var closeTimeout = 5000; if (typeof $("#nav-cart-wrapper").data('close_timeout') !== 'undefined' && isNumber($("#nav-cart-wrapper").data("close_timeout"))) { closeTimeout = $("#nav-cart-wrapper").data("close_timeout"); } $("#nav-cart-message-box").html(info); $("#nav-cart-message-box").show( "slide", { direction: "up" }, 500, function(){ setTimeout( function(){ $("#nav-cart-message-box").hide( "slide", { direction: "up" }, 500, function(){ return false; } ); }, closeTimeout ); } ) } // END showCartInfo function addProductsToCart(form){ var p_data = {}, p_json = []; form.find('[name="purchase_qty"]').each(function(){ if (isNumber($(this).val()) && $(this).val() > 0) { p_data = {}; p_data.artikli_pk = $(this).data("artikli_pk"); p_data.kolicina = $(this).val(); p_json.push(p_data); } }); if (p_json.length > 0) { $.ajax({ async : true, type : "POST", url : arsluna.options.subdir + "content/ecommerce/arsluna.ecommerce.post.php", data : {"p_request" : "add_products_to_cart", "data" : JSON.stringify(p_json), "timestamp" : new Date().getTime() } }).done(function(result){ var variant = $("#nav-cart-wrapper").attr("data-variant"), url; messageBox.create(''); messageBox.setContent(result.msg); form.find('[name="purchase_qty"]').val(""); url = arsluna.options.subdir + "content/ecommerce/arsluna.ecommerce.get.php?p_request=fmCartSmallGet&p_cart=" + result.data.cart + "&variant=" + variant; $('#nav-cart-wrapper').load(url + ' #nav-cart'); $('.nav-cart-wrapper').each(function() { var navCart = $(this).find('.nav-cart').first(), navCartId = navCart.attr('id'), paramsArrayId = $(this).attr("data-params_array_id"), functionName = 'initHoverIntent'; if (paramsArrayId.length > 0) { functionName = functionName + '_' + paramsArrayId; } variant = $(this).attr("data-variant"); if ($(this).attr('id') !== 'nav-cart-wrapper') { url = arsluna.options.subdir + "content/ecommerce/arsluna.ecommerce.get.php?p_request=fmCartSmallGet&p_cart=" + result.data.cart + "&variant=" + variant + "¶ms_array_id=" + paramsArrayId; $(this).load(url + ' #' + navCartId, function(){ if (typeof window[functionName] === "function") { window[functionName](selectorId); } }); } }); /* Lumal */ }) .fail(function(r,e) { messageBox.create(''); messageBox.setContent('' + ' ' + 'Prišlo je do napake pri dodajanju izdelkov v košarico!' + ' ' + ' ' + ' Nadaljuj ' + ' ' ); }); return false; } } // END addProductsToCart function pAddToFavorites(artikli_pk,el){ var is_empty = false, message = false; $.ajax({ async : true, type : "POST", url : arsluna.options.subdir + "content/ecommerce/arsluna.ecommerce.post.php", data : {"p_request" : "fmAddToFavorites", "artikli_pk" : artikli_pk, "href_current" : window.location.pathname + window.location.search, "p_timestamp" : new Date().getTime() } }) .done(function(result){ if (message) { messageBox.create(''); if (result.products && result.products != '') { messageBox.setContent(result.products); } else { messageBox.setContent('' + ' ' + 'Prišlo je do napake pri dodajanju izdelka v košarico' + ' ' + ' ' + ' ' + ' Nadaljuj ' + ' ' + ' ' ); } /* Lumal */ } // form.find(".button button-add-to-favorites-big").replace(); // form.find(".button button-add-to-favorites-small").replace(); if (el !== undefined && el != null) { if (el.hasClass("button-add-to-favorites-small")) { el.replaceWith('' + ' ' + ' ' + ' Odstrani z liste želja ' + ' ' ); } else if (el.hasClass("button-add-to-favorites-big")) { el.replaceWith('' + ' ' + ' ' + ' Odstrani z liste želja ' + ' ' ); } } }) .fail(function(r,e) { messageBox.create(''); messageBox.setContent('' + ' ' + 'Prišlo je do napake pri dodajanju izdelka na listo želja' + ' ' + ' ' + ' ' + ' ' + ' Nadaljuj ' + ' ' + ' ' ); }); return false; } // END pAddToFavorites function pRemoveFromFavorites(artikli_pk,el){ var is_empty = false, message = false; $.ajax({ async : true, type : "POST", url : arsluna.options.subdir + "content/ecommerce/arsluna.ecommerce.post.php", data : { "p_request" : "fmRemoveFromFavorites", "artikli_pk" : artikli_pk, "p_timestamp" : new Date().getTime() } }) .done(function (result) { if (message) { messageBox.create(''); messageBox.setContent(result.products); } if (el !== undefined && el != null) { if (el.hasClass("button-remove-from-favorites-small")) { el.replaceWith('' + ' ' + ' ' + ' Na listo želja ' + ' ' ); } else if (el.hasClass("button-remove-from-favorites-big")) { el.replaceWith('' + ' ' + ' ' + ' Na listo želja ' + ' ' ); } } /* Lumal */ // form.find(".button button-add-to-favorites-big").replace(); // form.find(".button button-add-to-favorites-small").replace(); }) .fail(function(r,e) { messageBox.create(''); messageBox.setContent('' + ' ' + 'Prišlo je do napake pri umiku izdelka iz priljubljenih' + ' ' + ' ' + ' ' + ' Nadaljuj ' + ' ' + ' ' ); }); return false; } // END pRemoveFromFavorites function setProductAttPrice(artikli_pk,artikli_att_detail_pk,uid){ var product_uid = uid; if (uid === undefined || uid === null || uid === ''){ product_uid = artikli_pk; } $.ajax({ async : true, type : "GET", url : arsluna.options.subdir + "content/ecommerce/arsluna.ecommerce.get.php", data : {"p_request" : "fmProductAttPriceGet", "artikli_pk" : artikli_pk, "artikli_att_detail_pk" : artikli_att_detail_pk, "p_timestamp" : new Date().getTime() } }) .done(function (r) { $("#price-big-" + artikli_pk).html(r.cena); $("#price-big-discount-" + artikli_pk).html(r.popust); $("#price-big-discounted-" + artikli_pk).html(r.cena_akcija); $("#price-" + artikli_pk).html(r.cena); $("#price-discount-" + artikli_pk).html(r.popust); $("#price-discounted-" + artikli_pk).html(r.cena_akcija); $("#product-" + product_uid).find(".prices-range").hide(); $("#product-" + product_uid).find(".prices-big.prices-big-hidden").removeClass("prices-big-hidden"); }) .fail(function(r,e) { console.log(r); console.log(e); }); } // END setProductAttPrice function setProductGridAttPrice(artikli_pk,artikli_att_detail_pk,uid){ var product_uid = uid; if (uid === undefined || uid === null || uid === ''){ product_uid = artikli_pk; } $.ajax({ async : true, type : "GET", url : arsluna.options.subdir + "content/ecommerce/arsluna.ecommerce.get.php", data : {"p_request" : "fmProductAttPriceGet", "artikli_pk" : artikli_pk, "artikli_att_detail_pk" : artikli_att_detail_pk, "p_timestamp" : new Date().getTime() } }) .done(function (r) { var price; if ($('#price-small-' + product_uid).children('.intval').length === 0) { $("#price-small-" + product_uid).html(r.cena); } else { price = r.cena.split(','); $('#price-small-' + product_uid).children('.intval').html(price[0]); $('#price-small-' + product_uid).children('.floatval').html(price[1]); } $("#price-small-discount-" + product_uid).html(r.popust); if ($('#price-small-discounted-' + product_uid).children('.intval').length === 0) { $("#price-small-discounted-" + product_uid).html(r.cena_akcija); } else { price = r.cena_akcija.split(','); $('#price-small-discounted-' + product_uid).children('.intval').html(price[0]); $('#price-small-discounted-' + product_uid).children('.floatval').html(price[1]); } }) .fail(function(r,e) { console.log(r); console.log(e); }); } // END setProductGridAttPrice function fCalcImage(width,height,max_width,max_height){ var ratio = width/height, retval = {}; retval.width = width; retval.height = height; if (retval.width > max_width) { retval.height = retval.height * (max_width/retval.width); retval.width = max_width; } if (retval.height > max_height) { retval.width = retval.width * (max_height/retval.height); retval.height = max_height; } return retval; } function setProductGridAttData(artikli_pk,artikli_att_detail_pk,uid,image_size){ var price,images,wrapper,wrapper_width,wrapper_height,image,path,product_uid = uid; if (uid === undefined || uid === null || uid === ''){ product_uid = artikli_pk; } $.ajax({ async : true, type : "GET", url : arsluna.options.subdir + "content/ecommerce/arsluna.ecommerce.get.php", data : {"p_request" : "fmProductAttDataGet", "artikli_pk" : artikli_pk, "artikli_att_detail_pk" : artikli_att_detail_pk, "p_timestamp" : new Date().getTime() } }) .done(function (r) { var prices,images,wrapper,wrapper_width,wrapper_height,image,src,price; if (("price" in r) && !$.isEmptyObject(r.price)) { prices = r.price; if ($('#price-small-' + product_uid).children('.intval').length === 0) { $("#price-small-" + product_uid).html(prices.cena); } else { price = prices.cena.split(','); $('#price-small-' + product_uid).children('.intval').html(price[0]); $('#price-small-' + product_uid).children('.floatval').html(price[1]); } $("#price-small-discount-" + product_uid).html(prices.popust); if ($('#price-small-discounted-' + product_uid).children('.intval').length === 0) { $("#price-small-discounted-" + product_uid).html(prices.cena_akcija); } else { price = prices.cena_akcija.split(','); $('#price-small-discounted-' + product_uid).children('.intval').html(price[0]); $('#price-small-discounted-' + product_uid).children('.floatval').html(price[1]); } } if (!$.isEmptyObject(r.images)) { images = r.images; if (!$.isEmptyObject(images.thumb)) { wrapper = $("#product-" + product_uid).find(".grid-element-content-header-image"); wrapper_width = wrapper.innerWidth; wrapper_height = wrapper.innerHeight; switch (image_size) { case 'mid': image = fCalcImage(images.mid.width,images.mid.height,wrapper_width,wrapper_height); path = images.mid.path; break; case 'big': image = fCalcImage(images.big.width,images.big.height,wrapper_width,wrapper_height); path = images.big.path; break; default: image = fCalcImage(images.thumb.width,images.thumb.height,wrapper_width,wrapper_height); path = images.thumb.path; } wrapper.find("img").attr("src",path); wrapper.find("img").attr("width",image.width); wrapper.find("img").attr("height",image.height); } } }) .fail(function(r,e) { console.log(r); console.log(e); }); } // END setProductGridAttData function setProductDetailAttData(product_id, product_uid, artikli_att_pk, artikli_att_detail_pk, imageChangeType, image_size){ $.ajax({ async : true, type : "GET", url : arsluna.options.subdir + "content/ecommerce/arsluna.ecommerce.get.php", data : {"p_request" : "fmProductAttDataGet", "artikli_pk" : product_id, "artikli_att_pk" : artikli_att_pk, "artikli_att_detail_pk" : artikli_att_detail_pk, "p_timestamp" : new Date().getTime() } }) .done(function (r) { var prices,images,wrapper,wrapper_width,wrapper_height,image,src,path, imgElement; if (("price" in r) && !$.isEmptyObject(r.price)) { prices = r.price; $("#price-" + product_id).html(prices.cena); $("#price-discount-" + product_id).html(prices.popust); $("#price-discounted-" + product_id).html(prices.cena_akcija); $("#price-" + product_uid).html(prices.cena); $("#price-discount-" + product_uid).html(prices.popust); $("#price-discounted-" + product_uid).html(prices.cena_akcija); if (prices.cena === prices.cena_akcija) { $("#price-" + product_id).closest("ul").removeClass("not-valid"); $("#price-" + product_uid).closest("ul").removeClass("not-valid"); $("#price-discount-" + product_id).closest("ul").addClass("hidden"); $("#price-discount-" + product_uid).closest("ul").addClass("hidden"); $("#price-discounted-" + product_id).closest("ul").addClass("hidden"); $("#price-discounted-" + product_uid).closest("ul").addClass("hidden"); } else { $("#price-" + product_id).closest("ul").addClass("not-valid"); $("#price-" + product_uid).closest("ul").addClass("not-valid"); $("#price-discount-" + product_id).closest("ul").removeClass("hidden"); $("#price-discount-" + product_uid).closest("ul").removeClass("hidden"); $("#price-discounted-" + product_id).closest("ul").removeClass("hidden"); $("#price-discounted-" + product_uid).closest("ul").removeClass("hidden"); } $("#product-" + product_uid).find(".prices-range").hide(); $("#product-" + product_uid).find(".prices-big.prices-big-hidden").removeClass("prices-big-hidden"); } if (!$.isEmptyObject(r.images)) { images = r.images; if (!$.isEmptyObject(images.thumb)) { wrapper = $(".slides-container-images-wrapper"); wrapper_width = wrapper.innerWidth; wrapper_height = wrapper.innerHeight; switch (image_size) { case 'mid': image = fCalcImage(images.mid.width,images.mid.height,wrapper_width,wrapper_height); path = images.mid.path; break; case 'big': image = fCalcImage(images.big.width,images.big.height,wrapper_width,wrapper_height); path = images.big.path; break; default: image = fCalcImage(images.thumb.width,images.thumb.height,wrapper_width,wrapper_height); path = images.thumb.path; } switch (imageChangeType) { case 2: wrapper.find("img.product-images-main-image").fadeOut(500, function(){ wrapper.find("img.product-images-main-image").attr("src",path); wrapper.find("img.product-images-main-image").attr("width",image.width); wrapper.find("img.product-images-main-image").attr("height",image.height); wrapper.find("img.product-images-main-image").fadeIn(500); }); break; case 3: imgElement = ' '; wrapper = $("#product-images-attribute-image-" + artikli_att_pk); wrapper.fadeOut(500, function(){ wrapper.html(imgElement); wrapper.fadeIn(500); }); break; default: break; } } } }) .fail(function(r,e) { console.log(r); console.log(e); }); } // END setProductDetailAttData function setProductGridOption(el,type,image_size){ var options = $(el).closest(".product-options"), current_option = $(el).closest(".option"), product_uid = options.data("product_uid"), product_id = options.data("product_id"), form = $(el).closest("form"), input_type, element_id, option = {}, data = {}; /* var price,images,wrapper,wrapper_width,wrapper_height,image,path,product_uid = uid; if (uid === undefined || uid === null || uid === ''){ product_uid = artikli_pk; } */ if (image_size === "") { image_size = 'thumb'; } data.artikli_pk = options.data("product_id"); data.current_option_pk = current_option.data("option_pk"); data.current_option = current_option.data("option"); data.image_change = current_option.data("image_change"); data.options = []; options.find(".option").each(function(){ option = {}; option.product_data_pk = $(this).data("option_pk"); option.product_data_lov_pk = false; input_type = $(this).data("input_type"); switch (input_type) { case 'select': if(isNumber($(this).find("select").val())){ option.product_data_lov_pk = $(this).find("select").val(); } else { element_id = $(this).find("select").attr("id"); $("#" + element_id + " > option").each(function() { if (!isNumber(option.product_data_lov_pk) && isNumber(this.value)) { option.product_data_lov_pk = this.value; $("#" + element_id).val(option.product_data_lov_pk); } }); } break; default: if (!$(this).find('input:radio[name="option[' + option.product_data_pk + ']"]').is(":checked")) { $(this).find('input:radio[name="option[' + option.product_data_pk + ']"]:first').prop("checked",true); } option.product_data_lov_pk = $(this).find('[name="option[' + option.product_data_pk + ']"]:checked').val(); break; } data.options.push(option); }); $.ajax({ async : true, type : "GET", url : arsluna.options.subdir + "content/ecommerce/arsluna.ecommerce.get.php", data : { "p_request" : "get_product_option_data", "p_data" : JSON.stringify(data), "p_timestamp" : new Date().getTime() } }) .done(function (result) { var r,prices,images,wrapper,wrapper_width,wrapper_height,image,src,price; if (result.status == 1) { form.find('[name="art"]').val(""); messageBox.create(''); messageBox.setContent('' + ' ' + result.msg + ' ' + ' ' + ' Nadaljuj ' + ' ' ); return false; } else { /* Remove not-available Class from current option values */ input_type = $('[name="option[' + data.current_option_pk + ']"]').first().is("select") ? 'select' : 'radio'; switch (input_type) { case 'select': $('[name="option[' + data.current_option_pk + ']"]').find("option").removeClass("not-available").addClass("available"); break; default: $('[name="option[' + data.current_option_pk + ']"]').removeClass("not-available").addClass("available"); } r = result.data; $.each(r.options, function(index, option) { var checkedValue = '' ,inputType; inputType = $('[name="option[' + index + ']"]').first().is("select") ? 'select' : 'radio'; switch (inputType) { case 'select': $('[name="option[' + index + ']"]').find("option").removeClass("available").addClass("not-available"); $.each(option, function(optionIndex, optionValue) { $('[name="option[' + index + ']"] option[value="' + optionValue.product_data_lov_pk + '"]').removeClass("not-available").addClass("available"); checkedValue = optionValue.checked ? optionValue.product_data_lov_pk : checkedValue; }); $('[name="option[' + index + ']"]').val(checkedValue); break; default: $('[name="option[' + index + ']"]').removeClass("available").addClass("not-available"); $.each(option, function(optionIndex, optionValue) { $('[name="option[' + index + ']"][value="' + optionValue.product_data_lov_pk + '"]').removeClass("not-available").addClass("available"); checkedValue = optionValue.checked ? optionValue.product_data_lov_pk : checkedValue; }); $('[name="option[' + index + ']"][value="' + checkedValue + '"]').prop("checked", true); } }); form.find('[name="art"]').val(r.id); $("#product-" + product_uid).find(".product-name").html(r.name); $("#product-" + product_uid).find(".stock-info-wrapper").html(r.stock); $("#product-" + product_uid).find(".stock-info-wrapper").removeClass("on-stock").removeClass("out-of-stock").addClass(r.stock_class); if (type === 'detail') { $("#product-" + product_uid).find(".product-code > span").html(r.code); $("#product-" + product_uid).find(".product-ean > span").html(r.ean); $("#product-" + product_uid).find("#product-detail-attributes-4-wrapper").html(r.product_atributes_4); r.product_atributes_4 = ""; if (("price" in r) && !$.isEmptyObject(r.price)) { prices = r.price; if ($('#price-' + product_id).children('.intval').length === 0) { $("#price-" + product_id).html(prices.cena); } else { price = prices.cena.split(','); $('#price-' + product_id).children('.intval').html(price[0]); $('#price-' + product_id).children('.floatval').html(price[1]); } $("#price-discount-" + product_id).html(prices.popust); if ($('#price-discounted-' + product_id).children('.intval').length === 0) { $("#price-discounted-" + product_id).html(prices.cena_akcija); } else { price = prices.cena_akcija.split(','); $('#price-discounted-' + product_id).children('.intval').html(price[0]); $('#price-discounted-' + product_id).children('.floatval').html(price[1]); } /* $("#price-" + product_id).html(prices.cena); $("#price-discount-" + product_id).html(prices.popust); $("#price-discounted-" + product_id).html(prices.cena_akcija); $("#price-" + product_uid).html(prices.cena); $("#price-discount-" + product_uid).html(prices.popust); $("#price-discounted-" + product_uid).html(prices.cena_akcija); */ if (prices.cena === prices.cena_akcija) { $("#price-" + product_id).closest("ul").removeClass("not-valid"); $("#price-" + product_uid).closest("ul").removeClass("not-valid"); $("#price-discount-" + product_id).closest("ul").addClass("hidden"); $("#price-discount-" + product_uid).closest("ul").addClass("hidden"); $("#price-discounted-" + product_id).closest("ul").addClass("hidden"); $("#price-discounted-" + product_uid).closest("ul").addClass("hidden"); } else { $("#price-" + product_id).closest("ul").addClass("not-valid"); $("#price-" + product_uid).closest("ul").addClass("not-valid"); $("#price-discount-" + product_id).closest("ul").removeClass("hidden"); $("#price-discount-" + product_uid).closest("ul").removeClass("hidden"); $("#price-discounted-" + product_id).closest("ul").removeClass("hidden"); $("#price-discounted-" + product_uid).closest("ul").removeClass("hidden"); } $("#product-" + product_uid).find(".prices-range").hide(); $("#product-" + product_uid).find(".prices-big.prices-big-hidden").removeClass("prices-big-hidden"); } if ($("#product-data-container-001").length > 0 && $("#product-data-container-001").data("change") === 1) { changeProduct

Ohranjeno iz stare strani: izvorna vsebina ↗