Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Capturing Lead When used with a WordPress Contact Form Plugin

by

Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate F.A.Q/Instructions › Capturing Lead When used with a WordPress Contact Form Plugin

Tagged: delete all sales data, Lead capturing

  • This topic has 0 replies, 1 voice, and was last updated 14 years, 8 months ago by amin007.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • August 29, 2010 at 2:59 am #1749
    amin007
    Participant

    This instruction is suited best for someone with PHP Coding Knowledge

    The WP Affiliate Platform plugin allows you to use a “Pay Per Lead” affiliate model. It can be integrated easily with the popular Contact Form 7 Plugin. More details here:

    How to Use Pay Per Lead Affiliate Model

    If you need to integrate the lead capturing with a contact form plugin that you are customizing or developing then this is what you need to do to capture a lead.

    Simply paste the following piece of code after the form submission code of the contact form plugin:

    $aff_id = $_COOKIE['ap_id'];
    if(!empty($aff_id))
    {
    $reference = "12345";//Reference number or text associated with this lead
    $buyer_email = "buyerEmail@gmail.com";//Get this from's the contact form POST data
    $clientdate = (date ("Y-m-d"));
    $clienttime = (date ("H:i:s"));
    $ipaddress = $_SERVER['REMOTE_ADDR'];

    global $wpdb;
    $affiliates_leads_table_name = $wpdb->prefix . "affiliates_leads_tbl";
    $updatedb = "INSERT INTO $affiliates_leads_table_name (buyer_email,refid,reference,date,time,ipaddress) VALUES ('$buyer_email','$aff_id','$reference','$clientdate','$clienttime','$ipaddress')";
    $results = $wpdb->query($updatedb);
    }

  • Author
    Posts
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ