Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Set Promocodes to work once per user (http://www.mysidiaadoptables.com/forum/showthread.php?t=5236)

MadiFox 10-24-2016 07:21 PM

Set Promocodes to work once per user
 
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!


All times are GMT -5. The time now is 10:30 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.