After testing out various affiliate platform, I decided to test out JROX. Since I'm using AbanteCart for most of my ecommerce shops, I looked up how to integrate JROX with AbanteCart. There aren't modules associated with JROX and most other ecommerce platfoprms, but they do offer code to add to the other platforms.
According to JROX, you place this code in the success.php page of AbanteCart located at /storefront/controller/pages/checkout/success.php
After this piece of code:
if (isset($this->session->data['order_id'])) {
$amount = $this->session->data['used_balance']; // in default currency
if($amount){
$transaction_data = array(
'order_id'=>(int)$this->session->data['order_id'],
'amount' => $amount,
'transaction_type'=>'order',
'created_by' => $this->customer->getId(),
'description' => sprintf($this->language->get('text_applied_balance_to_order'),
$this->currency->format($this->currency->convert($amount,$this->config->get('config_currency'), $this->session->data['currency']),$this->session->data['currency'],1),
(int)$this->session->data['order_id']));
$this->customer->debitTransaction($transaction_data);
You'll enter this piece of code:
file_get_contents('YOURLINKHERE/affiliates/sale/amount/' . $amount . '/trans_id/' . (int)$this->session->data['order_id'] . '/tracking_code/' . $_COOKIE['jamcom']);
}
Don't forget to change YOURLINKHERE with where you installed your copy of JROX Affiliate Manager (JAM).
I hope this help.