AbanteCart Community
Shopping Cart Operations => Support => Topic started 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!
-
Sounds like a good project for an extension!
-
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.
-
Thank you jamesrhenry
-
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!