Log in

View Full Version : Set Promocodes to work once per user


MadiFox
10-24-2016, 07:21 PM
Is there an easy way to set Promocodes to only work once per user?

Abronsyth
10-25-2016, 07:25 AM
Unfortunately there is not at this time. There is definitely some sort of editing you could do to make this possible, but I haven't looked into it a whole lot yet.

Basically my idea would be that in the table prefix_promocodes add a row called "users" that will record the IDs of each user who has used the promocode. Then modify the script so that it recognizes when a user tries to use the promocode to check if their ID is on the list for that code. If it is not, then they can use it normally, but if it is then they will be brought to an error page.

This is necessary for my site eventually, so I will be working to get a working version of this made :)

MadiFox
10-31-2016, 12:56 AM
Awesome :D Thank you so much!