function checkPrivacyAgreement() { const isAgree=window.localStorage.getItem('fr-agreephotoagreement'); if(isAgree==='true') { return Promise.resolve({}); }else{ return Promise.reject({}); } } function confirmPrivacyAgreement() { window.localStorage.setItem('fr-agreephotoagreement','true'); } exportFunction('check', checkPrivacyAgreement); exportFunction('confirm',confirmPrivacyAgreement);
function successOrder(params) { return Promise.resolve(params); } exportFunction('successOrder',successOrder); var eventData={}; let hasLogin = false; function successUK(eData){ hasLogin = true; eventData=eData; const email = eventData.customer.email; document.getElementById("current_email").innerHTML = email; localStorage.setItem('current-email',email); localStorage.setItem('hasLogin',true); return eventData; } function successNext(){ let hasLogins = localStorage.getItem('hasLogin'); if(hasLogins != "false" || hasLogin != false){ return Promise.resolve({}); }else{ return Promise.reject({}); } } exportFunction('next',successNext); exportFunction('successUK',successUK);
function checkPage(){ const bgPage=['/pages/klarna','/pages/about-us','/pages/shippingtracking','/pages/return-refund','/pages/privacysecurity','/pages/conditions','/pages/review-of-prescriptions','/pages/affiliate']; if(bgPage.includes(window.location.pathname)) { return Promise.resolve({}); } else { return Promise.reject({}); } } exportFunction('checkBg', checkPage);
Free Shipping Over GBP £55.00
Buy 1, Get Other Frames 50% Off