I have built a small affiliate system using Toolset.
Affiliates are stored as WordPress users with custom role "affiliate" and I use their user ID as affiliate number.
Every Affiliate can use then the URL "hidden link" for their referrals
When a visitor come to the site with an affiliate link, and submit the contact form, the URL parameter "ref" is saved along to a custom user field "referrer_id"
The Affiliate should receive then a notification confirming that one of their referrals registered to the site.
However, the visitor should confirm their email, before the notification is sent to the Affiliate.
Hello. Thank you for contacting the Toolset support.
I would like to know you are using Toolset Form - right?
However, the visitor should confirm their email, before the notification is sent to the Affiliate.
==>
From where user will confirm the email, what is the process to confirm the email?
Everything is done using WP, Toolset and nothing else.
The main problem is that Toolset Form don't have any integrated mechanism for double optins, which it's a must-have in 2021.
Anyway, this is the idea:
- Affiliate send a link to a customer, containing his WP user id. Ex. hidden link
- Customer fills and submit the contact form on that page, which create a new WP user with his data + the affiliate number in a custom field.
- The form send automatically a notification to the customer, asking to confirm their email address through a link.
This is the point where I would like to know how to send a notification to the Affiliate, once the customer has confirmed his subscription.
I could think of an additional "status" custom field, where I could save a value of "confirmed", once the link have been clicked, which would trigger the Affiliate's notification.
- The form send automatically a notification to the customer, asking to confirm their email address through a link.
==>
So, once you click on this link, the customer email address will be automatically confirmed or the customer will be redirected to some page where there will be a form populated with his/her email address?