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('NRCR3218ACH'); $(".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=0; var currentPrice = 240; 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.