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
My solustion is running, except the “debug-thing”!
What I did:
// Start - Award Jrox Affiliate for Manual Checkout<br />
$sale_amt = $_SESSION['eStore_cart_sub_total'];<br />
$trans_id = "Bank-Manuell";<br />
$jrox_cookie = urlencode($_COOKIE['jrox']);<br />
$payer_email = $_POST['customer_email'];<br />
$JAMIntegrate = file_get_contents("http://www.mydomain.com/affiliates/sale.php?amount=".$sale_amt."&trans_id=".$trans_id."&custom_mid=".$jrox_cookie."&jrox_svalue_1=".$payer_email);<br />
//$this->debug_log('Awarding JROX affiliate commission.',true);<br />
// End - Award Jrox Affiliate for Manual Checkout<br />
First, I needed to “urlencode” the cookie, to get the cookie-information into Jrox-JAM. (before I got only the affiliate-ID but not the rest (adtracker-info, referrer-website)
Second, I avtivated the custom_variable in JAM (system integration) for the “customer_email_address”.
Third, I added the code-elements for the $payer_email
Now I need to change that in paypal.php for paypal-payment as well. But that should be no problem anymore.
PS: Be careful with custom-values where the content can include “space” (eg. name). You need to trim that. Otherwise you get an ERROR.