Author Topic: Setting up Jrox JAM Affiliate manager with AbanteCart  (Read 5946 times)

Offline seedvisions

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-1
    • View Profile
Setting up Jrox JAM Affiliate manager with AbanteCart
« 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!

gordontaylor

  • Guest
Re: Setting up Jrox JAM Affiliate manager with AbanteCart
« Reply #1 on: March 07, 2014, 11:06:54 PM »
Sounds like a good project for an extension!

Offline jamesrhenry

  • Newbie
  • *
  • Posts: 4
  • Karma: +2/-0
  • Owner of Loyalty Hosting, a HenryTek company!
    • View Profile
    • Loyalty Hosting
Re: Setting up Jrox JAM Affiliate manager with AbanteCart
« Reply #2 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.
Get unlimited hosting with free domain name - newbielink:http://www.loyaltyhosting.com [nonactive]

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5774
  • Karma: +274/-2
    • View Profile
Re: Setting up Jrox JAM Affiliate manager with AbanteCart
« Reply #3 on: May 29, 2018, 11:50:32 PM »
Thank you jamesrhenry

Offline jamesrhenry

  • Newbie
  • *
  • Posts: 4
  • Karma: +2/-0
  • Owner of Loyalty Hosting, a HenryTek company!
    • View Profile
    • Loyalty Hosting
Re: Setting up Jrox JAM Affiliate manager with AbanteCart
« Reply #4 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!
Get unlimited hosting with free domain name - newbielink:http://www.loyaltyhosting.com [nonactive]

 

Powered by SMFPacks Social Login Mod