Hi, everyone
I need little bit help related to creating Coupon script. Let me explain my idea, for example I have 100 coupons and I want to give each one to only one customer. And I want when one cupon is loaded next time it dosen't load.
Let say Coupon is "sale2017", so when buyer put his email address on first page to get cupon, upon submition he will be redirected to second page where javascript function starts and Coupon loads on second page and shows to customer, but I also want that this cupon never ever load again when next time other customer submit email.
Every time I want to show new cupon and also want to delete the loaded cupon so it never appear again.
I know how to create array with 100 cupons and also know how to show output on page through Javascript but I need function to do this. Please can you provide me that finction with code or can create a demo for me. Demo will be more helpful.
Hope to get help soon.
Regards,
Peace Coder