Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › WP eStore and JROX JAM Affiliate Manager Integration › Reply To: WP eStore and JROX JAM Affiliate Manager Integration
In the “eStore_payment_submission.php” there is a place for awarding commission to “WP Affiliate Platform” so search for the following comment in that file:
//Award Affiliate Commission
and replace the commission awarding of “WP Affiliate Platform” to do the JROX Affiliate awarding. The following bit of code should do it.
$sale_amt = $_SESSION;
$trans_id = “”;//Use some unique ID
$jrox_cookie = $_COOKIE;
$JAMIntegrate = file_get_contents(“http://www.mydomainname.com/affiliates/sale.php?amount=”.$sale_amt.”&trans_id=”.$trans_id.”&custom_mid=”.$jrox_cookie);
$this->debug_log(‘Awarding JROX affiliate commission.’,true);