Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function() {
- var currentCoupone = 'IQOSAPR21';
- var data = null;
- var xhr = new XMLHttpRequest();
- xhr.withCredentials = true;
- xhr.addEventListener("readystatechange", function () {
- if (this.readyState === 4) {
- window.location.reload(true);
- }
- });
- xhr.open('POST', 'https://il.iqos.com/he/?result_ids=checkout*%2Ccart_status*%2Ccart_items%2Cpayment-methods&redirect_url=checkout.cart&coupon_code=' + currentCoupone + '&dispatch=checkout.apply_coupon&full_render=Y&is_ajax=1');
- xhr.setRequestHeader("cache-control", "no-cache");
- xhr.send(data);
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement