Promocodes not working

Forum
Last Post
Threads / Messages

Niddrie

Member
Member
Joined
Apr 20, 2012
Messages
2
Points
1
Location
USA
Mysidian Dollar
24
Hi guys! I recently downloaded and set up version 1.3.6. I can't get promo codes to work. I haven't changed anything in the codes. When I enter the promocode it creates the adoptable but doesn't assign it to my account and instead assigns it to account #0. I have it set through Amin CP so that all users should be able to enter the promocode and receive an adopt, but it doesn't seem to matter. When I check the database it says user #0 and I can't seem to set it to all users in the database. (attached pictures below)

Screen Shot 2023-01-19 at 3.59.10 PM.png
In the database it is set to user #0 and not All Users, when the promocode is entered it assigns the new adopt to User #0.
Screen Shot 2023-01-19 at 4.03.38 PM.png
In Admin Control Panel it says ALL Users
 

GeneticAlpha

Loving Mysidia!
Member
Joined
May 24, 2020
Messages
273
Points
18
Age
30
Location
Tennessee
Mysidian Dollar
13,291
Hi guys! I recently downloaded and set up version 1.3.6. I can't get promo codes to work. I haven't changed anything in the codes. When I enter the promocode it creates the adoptable but doesn't assign it to my account and instead assigns it to account #0. I have it set through Amin CP so that all users should be able to enter the promocode and receive an adopt, but it doesn't seem to matter. When I check the database it says user #0 and I can't seem to set it to all users in the database. (attached pictures below)

View attachment 510
In the database it is set to user #0 and not All Users, when the promocode is entered it assigns the new adopt to User #0.
View attachment 511
In Admin Control Panel it says ALL Users
That's the way the code is set up, where 0 means anyone can claim. So when a user uses the code, it gives them the adopt still but the promo is 0. The promo uid changes to a uid number if the code is specific to a user, otherwise 0.

So the adopt would now belong to that user that used the code, and it can be traded etc. If you want it to be tied to the user after claimed you need to create a code that looks at a users adopts and changes the adopt to be bound to the user uid.
 

Niddrie

Member
Member
Joined
Apr 20, 2012
Messages
2
Points
1
Location
USA
Mysidian Dollar
24
The problem I am running into is that when the user uses the code, it does not give them the adopt. The adopt is created but is given to user # 0 instead. So the promocode successfully creates the adoptable but assigns it to the wrong account # (which happens to be account #0) instead of the account # that claimed the code. Hopefully that makes sense, I'm not a coder and can't figure it out on my own :)
 

GeneticAlpha

Loving Mysidia!
Member
Joined
May 24, 2020
Messages
273
Points
18
Age
30
Location
Tennessee
Mysidian Dollar
13,291
The problem I am running into is that when the user uses the code, it does not give them the adopt. The adopt is created but is given to user # 0 instead. So the promocode successfully creates the adoptable but assigns it to the wrong account # (which happens to be account #0) instead of the account # that claimed the code. Hopefully that makes sense, I'm not a coder and can't figure it out on my own :)
If you like, you can join the Mysidia Discord server and message me on Discord. I'm Micolai#8352 https://discord.gg/NKaB3whu I'm faster to reply on there since I get alerts. I can help you out the best I can with things. You may be needing to look in your file that holds the db update code that creates the adopts for the user when they use promo codes. If you message me on Discord I can try to help tackle the issue when I'm free.
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,229
Messages
32,687
Members
1,593
Latest member
Dracadia
BETA

Latest Threads

Top