Purchase OIOpublisher now for just $47.

Take control of your ad space.

Click here to purchase

  1.  

    I'm selling product on my blog, want to setup affiliate program to partners to draw more traffic. Can you sales tracking capability can trace the name of referrer in the order form, not just the landing page? thx.

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorSimon
    • CommentTimeAug 5th 2008 edited
     
    Project Admin

    The plugin doesn't currently support this functionality. It is possible to get it manually, because when you get to the purchase page you have the affiliate ID available to you:

    $affiliate_id = intval($_COOKIE['oiopub_refid']);

    You could use that to get the name / email of the referrer:

    $name = $wpdb->get_var("SELECT name FROM " . $oiopub_misc->dbtable_affiliates . " WHERE id='$affiliate_id'");

    Then you'd have to output the result (this process would need to be done in each file in the purchase/templates folder):

    if(!empty($name)) echo "Referrer: " . $name;

    Need help?  Quick start guide | Troubleshooting | All help topics