NikolayBezay

3d Innovation submit coupon JS

Mar 23rd, 2021
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function() {
  2.     var COUPON_TEXT = 'TEST_COUPON';
  3.     var pageCouponInput = document.querySelector('#coupon_code');
  4.     var submitCouponButton = document.querySelector('button[title="Apply Coupon"]');
  5.     if (COUPON_TEXT && pageCouponInput && submitCouponButton) {
  6.         pageCouponInput.value = COUPON_TEXT;
  7.         submitCouponButton.click();
  8.     }
  9. })();
  10.  
Advertisement
Add Comment
Please, Sign In to add comment