SOLE RUNNER® Barfußschuhe auf der Messe Rohvolution in Konstanz 23/24.11.24
document.addEventListener('DOMContentLoaded', function() { var oldUVP=$('.single-rightside .crossprice>del').text().replace(/,/,".").replace(/EUR/," "); var currentPrice = $('.single-rightside .salePrice>span:first-child').text().replace(/,/,".").replace(/EUR/," "); var oldUVP=oldUVP.replace(/[^0-9\.]+/g,""); var currentPrice = currentPrice.replace(/[^0-9\.]+/g,""); function calculatePercent() { var percent = (oldUVP-currentPrice)/oldUVP*100; var percentRound = Math.round(percent); $(".saving_p").html("-"+percentRound+"%"); currentSaving=oldUVP-currentPrice,currentSaving=currentSaving.toFixed(2).replace(/\./,","), $("#saving_eur").html(currentSaving+" EUR") };calculatePercent(); var ArtNr = $('.variationID').html(); $('input[name="variationid"]').val('5600-35-38'); $(".ItemQuestionForm form > input[data-mail='subject']").val("Artikel-Nummer: " + ArtNr); $('.ItemQuestionForm input[name="Artikelnr."]').attr('disabled', 'disabled').val(ArtNr); });