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('HB-H02B'); $(".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=149; var currentPrice = 69; 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.