1. Open the "wp_eStore1.php" file and find the following function:
function eStore_get_custom_field_value()
once you find it just add the following towards the end of the function (just before the return statement):
$name = 'jrox_cookie';
$value = $_COOKIE['jrox'];
$custom_field_val = append_values_to_custom_field($name,$value);
2. Open the "eStore_payment_submission.php" file and find the following function:
function eStore_get_custom_field_value1()
once you find it just add the following towards the end of the function (just before the return statement):
$name = 'jrox_cookie';
$value = $_COOKIE['jrox'];
$custom_field_val = append_values_to_custom_field($name,$value);
That will add it to the custom field.
3. Now open the "paypal.php" file and search for the following line:
$this->debug_log('Updating Affiliate Database Table with Sales Data if Using the WP Affiliate Platform Plugin.',true);
once you find that line add the following bit of code just before that line:
$sale_amt = $this->ipn_data['mc_gross'];
$trans_id = $this->ipn_data['txn_id'];
$jrox_cookie = $customvariables['jrox_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);
Don't forget to change "www.mydomainname.com" with your own domain name.
That should do it.