The system I have set up uses the links for affiliate and also direct ones where if details of where they found the site from we can manually assign credits or the lead to an affiliate. So we’re all good there.
What we need to know is using Contact form 7 how do add a field for affiliate ID if someone is given it to enter in the form.
Tried a few things like –
[hidden affiliate_id “3”]
Our form currently looks like:
Your Name (required)
[text* your-name 25/]
[text your-subject 25/]
Your Email (required)
[email* your-email 25/]
Contact Number/s (required)
[text* phone 25/]
[text postcode 10/]
Your Message (required)
Ticking the box indicates you are wanting broadband and accept you will be contacted by Quickline.
[acceptance acceptance-313 default:off]
[hidden amount “25”]
You can also use the hidden option to assign it to a user if they Iframe a form into a website
[hidden affiliate_id “8”] option too
That worked a treat thank you. In addition it would be good to show the referral login name if the ID is only given in the email notification.
I used the code [text affiliate_id] as a drop down of say 100 ID’s would be too much.
Great, for the notifications and affiliate info you have additional tokens – please have a look at http://www.itthinx.com/documentation/affiliates/notifications/
Thanks for the suggestion. I’ve updated the plugin to allow for two fields, one named
affiliate_idand the other named
affiliate_loginwhere the first would allow to indicate the referring affiliate’s ID and the second to indicate the referring affiliate’s user login. If any of these fields is provided in a form, the referrer is taken from there (empty fields don’t assign the referrer).
Example field definitions:
Select the affiliate ID
[select affiliate_id "" "1" "2" "3" ]
... or select the affiliate login
[select affiliate_login "" "wendy" "jack" "joe"]