Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 12-23-2015, 07:57 PM
tahbikat's Avatar
tahbikat tahbikat is offline
Member
 
Join Date: Feb 2014
Location: Louisiana
Posts: 408
Gender: Female
Credits: 65,384
tahbikat is on a distinguished road
Default Question about promo codes

So if I create a promocode that's available to everyone, and has a use of 1 time only, does that mean it's available to use 1 time per member or 1 time period (so like a first come, first serve thing)?

Thanks, and sorry for this silly question but just wanna make sure!

Last edited by tahbikat; 12-23-2015 at 08:01 PM.
Reply With Quote
  #2  
Old 12-23-2015, 09:13 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 151,901
Abronsyth is on a distinguished road
Default

It means it can only be used once before it's retired (so only 1 user can claim it). I found this out through trial and error, haha.
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote
  #3  
Old 12-23-2015, 11:08 PM
tahbikat's Avatar
tahbikat tahbikat is offline
Member
 
Join Date: Feb 2014
Location: Louisiana
Posts: 408
Gender: Female
Credits: 65,384
tahbikat is on a distinguished road
Default

Oh poop. Do you know if there is any way a promo code can be used once per user? :/
Reply With Quote
  #4  
Old 12-24-2015, 10:49 AM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 151,901
Abronsyth is on a distinguished road
Default

Nope, not yet, haha, I've been trying to figure it out for a couple of days now!

OK, so mimicking the moreless condition for adoptables it seems we'll need to create 2 new rows in the table prefix_promocodes, one to check if the condition is enabled, and one to tell us what that number is to tell us how many times each individual can redeem the code before it expires for them. Then most of the editing will be done in class_promocode.php, as well as the admincp files to make it so you can set the condition when creating a new promocode.

So we need the file to access the database, look at the two new rows to check if the condition is enabled, and if so check to see what the limit is, and decide if the user has gone over that limit. If not then it needs to update that row once the user uses it so that the next time it happens it can see that the user has used this code so many times...I'm sort of babbling here but I am still in the beginning phases of learning PHP, so I know what it needs to do, now I just need to tell it how to go about this.

I'm going to continue looking and playing with this and see if I can get it working...if I can I'll share it with everyone here :)
__________________
My Mods Site (1.3.4, 2020 Mods)

Last edited by Abronsyth; 12-26-2015 at 09:04 PM.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:15 PM.

Currently Active Users: 5423 (0 members and 5423 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636