This documentation is old and has been deprecated. It should not be used anymore. Use the new documentation for capturing lead with contact form 7 plugin.
Old Contact Form 7 and WP Affiliate Platform Lead Capture
Step 1: Setting up the Contact Form
Somewhere in your contact form’s “message body” enter the following piece of text:
[wp_affiliate_lead:reference:1:end]
1 is the a reference number (it can be anything). If you have multiple contact forms on your site then this number allows you differentiate which form generated which lead.
Step 2: Modify the code so the lead gets captured upon contact form submission
Open the “classes.php” file from the “includes” directory of the Contact Form 7 plugin and search for the following text
$headers = "From: $sender\n";
Once you find that line simply add the code given here just above that line.
All done, now when a visitor submits a contact form that has the special tag embedded in the “message body” it will capture the lead. You can view all the leads in the “Manage Leads” menu of the Affiliate Platform Software. You will be able to manually award commission from this menu once you get revenue from a lead.
Leave a Reply