function runAfterElementExists(jquery_selector, callback) {var checker = window.setInterval(function() {if ($(jquery_selector).length) {clearInterval(checker);callback();}}, 200);} var ArtNr = $('.variationID').html(); $('input[name="variationid"]').val('BW-S01'); $(".ItemQuestionForm form > input[data-mail='subject']").val("Artikel-Nummer: " + ArtNr); $('.ItemQuestionForm input[name="Artikelnr."]').attr('disabled', 'disabled').val(ArtNr); runAfterElementExists('.rightSide .crossprice>del', function() { var oldUVP=249; var currentPrice = 149; function calculatePercent() { var percent = (oldUVP-currentPrice)/oldUVP*100; var percentRound = Math.round(percent); $(".saving_p").html("-"+percentRound+"%"); }; calculatePercent(); });

KEINE NEWS MEHR VERPASSEN. BESTELLEN SIE JETZT UNSEREN NEWSLETTER UND SICHERN SICH EXCLUSIVE NEWS UND AKTIONEN.