Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › Integration with JROX Jam Affiliate Manager › Reply To: Integration with JROX Jam Affiliate Manager
Summary:
1. I must put this code into the paypal.php
$this->debug_log(‘Preparing JROX affiliate commission.’,true);
$sale_amt = $this->ipn_data;
$trans_id = $this->ipn_data;
$jrox_cookie = $customvariables;
$this->debug_log(‘Trans ID: ‘.$trans_id.’ Sale amount: ‘.$sale_amt.’ Cookie value: ‘.$jrox_cookie,true);
$JAMIntegrate = file_get_contents(“http://www.myactualdomainname.com/affiliates/sale.php?amount=”.$sale_amt.”&trans_id=”.$trans_id.”&custom_mid=”.$jrox_cookie);
$this->debug_log(‘Awarding JROX affiliate commission :’.$JAMIntegrate,true);
2. Put the code in this file wp_eStore1.php
$name = ‘jrox_cookie’;
$value = $_COOKIE;
$custom_field_val = append_values_to_custom_field($name,$value);
Is that all?