AbanteCart Community

Shopping Cart Operations => Support => Topic started by: seedvisions on March 07, 2014, 11:05:42 PM

Title: Setting up Jrox JAM Affiliate manager with AbanteCart
Post by: seedvisions on March 07, 2014, 11:05:42 PM
Hi, I see that there is an affiliate ext available but from the only review that I saw it looks very poorly done and not well supported.  I have the Jrox JAM Affiliate manager and am looking for suggestions on integrating it with  AbanteCart.

Also what would be the closest relative / equivalent  of AbanteCart, ZenCart, OSC etc?

Thanks!
Title: Re: Setting up Jrox JAM Affiliate manager with AbanteCart
Post by: gordontaylor on March 07, 2014, 11:06:54 PM
Sounds like a good project for an extension!
Title: Re: Setting up Jrox JAM Affiliate manager with AbanteCart
Post by: jamesrhenry on May 29, 2018, 02:57:12 PM
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.
Title: Re: Setting up Jrox JAM Affiliate manager with AbanteCart
Post by: Basara on May 29, 2018, 11:50:32 PM
Thank you jamesrhenry
Title: Re: Setting up Jrox JAM Affiliate manager with AbanteCart
Post by: jamesrhenry on June 22, 2018, 02:35:15 PM
You're very welcome. The forum  got this from was 2 years old & I had some issues at the start, but still testing it. Also thinking about developing an extension for this as well!