function getCustomCoupons(){ var coupon_ids_js = document.getElementById("coupon-id-lists").textContent; if(null){ return Promise.all([fetch('/api/discount-coupon/coupons?ids[]=336354971224121825&ids[]=336355341061071329&ids[]=336355629415274006&ids[]=305912080404316995&ids[]=263614663990710994&ids[]=263577664378376914&ids[]=263577448187171538'),fetch('/api/discount-coupon/coupons/received/count',{ method: 'POST', credentials: 'same-origin', body: coupon_ids_js })]).then((res) => { return Promise.all([res[0].json(),res[1].json()]) }).then((data) => { return data; }); }else{ return Promise.all([fetch('/api/discount-coupon/coupons?ids[]=336354971224121825&ids[]=336355341061071329&ids[]=336355629415274006&ids[]=305912080404316995&ids[]=263614663990710994&ids[]=263577664378376914&ids[]=263577448187171538')]).then((res) => { return Promise.all([res[0].json()]) }).then((data) => { return data; }); } } exportFunction('getCustomCoupons',getCustomCoupons);
Guide
What are the conditions?
1. Some coupons are restricted to certain products, categories or listings.
2. Taxes, difference, shipping and handling fees are excluded from any discount.
3. Only one coupon or discount code may be applied per order.
4. Vooglam reserves the right to modify this promotion rules.
Guide >