Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › Integration with JROX Jam Affiliate Manager › Reply To: Integration with JROX Jam Affiliate Manager
Hi – thanks for getting back to me so quickly. For some reason it’s not registering..
Here is what I did:
1. wp-eStore1.php
..around line 530ish
if (!empty($_SESSION))
{
$name = ‘coupon’;
$value = $_SESSION;
$custom_field_val = append_values_to_custom_field($name,$value);
}
//Begin CJ added per https://support.tipsandtricks-hq.com/forums/topic/integration-with-jrox-jam-affiliate-manager
$name = ‘jrox_cookie’;
$value = $_COOKIE;
$custom_field_val = append_values_to_custom_field($name,$value);
//End CJ added
return $custom_field_val;
}
function append_values_to_custom_field($name,$value)
2. paypal.php
…around line 468ish
$this->debug_log(‘Infusionsoft signup result: ‘.$result,true);
}
}
//CJ added begin https://support.tipsandtricks-hq.com/forums/topic/integration-with-jrox-jam-affiliate-manager
$sale_amt = $this->ipn_data;
$trans_id = $this->ipn_data;
$jrox_cookie = $customvariables;
$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.’,true);
//CJ added end
$this->debug_log(‘Updating Affiliate Database Table with Sales Data if Using the WP Affiliate Platform Plugin.’,true);
Have i miss-entered anything?