Hi, I have a question. How to issue a coupon to an existing user I referred once the friend signs up with a referral code.
I am having trouble identifying the referred user in the admin panel.
Details are below.
If you can think of an approach that can be implemented in Adalo, I would appreciate your help!
Thank you in advance!
■Signup screen
When a new member registers, he/she saves his/her referral code (a random 3-digit number) in coupon_code (Number type) in the User collection.
=> Your referral code will be displayed on My Page.
If you have received a referral code from a friend, enter your friend’s referral code in the “Referral Code” field (entry is optional) when you sign up for a new membership.
I want to issue a coupon from the administration screen to the user who referred my friend.
Create an Invitations collection to identify the user to whom you want to issue the coupon, together with the new member registration.
The components of the Invitations collection are as follows
code (Number type)
status (True/False)
invite_user (Many Invitations, one User)
invited_user (Many Invitations, one User)
Since the new Invitation is created after the Signup action, the introduced user (=invited_user) can set the Logged in User.
On the other hand, the key introduced user (=invite_user) is not configured properly. I am stuck here.
Here is what kind of user I want to set as invite_user.
Users whose 3-digit referral code input field (also set as Invitation code) matches the User’s coupon_code.
I am not sure how to implement this, since the detailed refinement of the User is not displayed when the Create action is performed.
■Coupon issue screen on the admin page
Display the following in a list.
The name of the user who introduced the coupon
Referred user name
Coupon issue button
When the coupon issue button is pressed, one coupon is given to the referred user.
Specifically, one coupon is added to the coupons (Number type) of the user in question.