I had an idea today about possibly how to make discount codes work in a general way. However, I need some brainstorming/programming ideas help. So I'm posting here and maybe we can work this thing out so it helps all of us.
Here's the scenario. 500 unique discount codes have been issued to 500 people who can each use that code one time to get 50% off from a store created with CCSCC Pro. Here's what I've thought of so far.
1. Discount all products in the cart by 50%. Put the cart in its own directory on the site.
2. Set up a mysql database with the discount codes in a table.
3. Create a form in which visitors input their coupon code. The php then authenticates the user code against the coupon codes in the database. If it authenticates, set a cookie showing authentication and forward the user to the cart.
Here's what I need to figure out.
A. How to make the cart check the cookie for authentication so that only those who have put in a valid code have access.
B. After a successful purchase, the cart needs to trigger the code to be disabled in the database.
What do you think?
ASK ME ANYTHING
I provide personalized help for Coffeecup Users including personal or group training for Site Designer, Web Form Builder and more via Zoom.
Email me at support@uscni.org or call 865-687-7698.
Did you know that Web Form Builder can be used for both simple and complicated forms and that it's not limited to the default fonts and buttons? Take a look at a form we developed for WindowTinting.com.
https://forms.windowtinting.com/forms/w … ppingcart/
I provide personalized help for Coffeecup Users including personal or group training for Site Designer, Web Form Builder and more via Zoom.
Email me at support@uscni.org or call 865-687-7698.
Did you know that Web Form Builder can be used for both simple and complicated forms and that it's not limited to the default fonts and buttons? Take a look at a form we developed for WindowTinting.com.
https://forms.windowtinting.com/forms/w … ppingcart/