Lorem ipsum

Spočítej slevu pro registrované a ukaž v detailu

.kn_client_logged_in #reg_price {display: none;}

 

<script>

$('.top-navigation-tools a[href*="klient"]').each(function() {
$("body").addClass("kn_client_logged_in");
});
$('.type-product .price-final-holder').each(function(index, el) {
var price = parseFloat($(el).text().replace(/\s/g, ''))*0.97;
$(el).append('<p id="reg_price">Cena pro registrované:</p><p>' + Math.round(price) + ' Kč</p>');
});
</script>

 

 

<script><script>$('.top-navigation-tools a[href*="klient"]').each(function() {    $("body").addClass("kn_client_logged_in");});
$('.type-product .price-final-holder').each(function(index, el) { var price = parseFloat($(el).text().replace(/\s/g, ''))*0.97;

$(el).append('<p id="reg_price">Cena pro registrované:</p><p>' + Math.round(price) + ' Kč</p>');});</script>