Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- const urlParams = new URLSearchParams(window.location.search)
- const region = urlParams.get('region')
- const variant = urlParams.get('variant')
- var milliseconds = (new Date).getTime();
- var newtime = milliseconds + 2000
- const loginOffer = 'https://www.kickz.com/en/checkout/login_offer?actionName=login_offer'
- const cartlink = 'https://www.kickz.com/en/cart'
- const reservebasketurl = 'https://www.kickz.com/en/checkout/reserveBasketItemsAjax/timestamp/' + milliseconds;
- const reservebasketurl1 = 'https://www.kickz.com/en/checkout/reserveBasketItemsAjax/timestamp/' + newtime;
- const atcLink = 'https://www.kickz.com/' + region + '/cart/ajaxAdd/variantId/' + variant
- fetch(atcLink, {method: 'GET', credentials: 'include'})
- fetch(reservebasketurl, {method: 'GET', credentials: 'include'})
- fetch(reservebasketurl1, {method: 'GET', credentials: 'include'})
- window.open(loginOffer, "_self")
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement