Post by lochoe » Fri Nov 18, 2011 3:02 pm

I just purchased idevaffiliate 6 to manage our cart affiliate, for latest version, they have integration wizard for opencart

but when i try make an order using affiliate link, nothing happen to my affiliate commision

this how the wizard should be
1. look this code on OpenCart file: /catalog/controller/checkout/success.php.

public function index() {

Below this code, add

Code: Select all

// IDEV AFFILIATE -- START
    if (isset($this->session->data['order_id'])) {
    error_reporting(E_ALL & ~E_NOTICE);
    $order_id = (int)$this->session->data['order_id'];
    $arr_order = mysql_fetch_assoc(mysql_query("select * from `order` where order_id=$order_id"));
    $url = "http://www.THEDOMAIN.com/affiliate/sale.php?profile=64&idev_saleamt=$arr_order[total]&idev_ordernum=$order_id&ip_address=$arr_order[ip]";    
    $ch = curl_init();               
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_exec($ch);
    curl_close($ch);    
    }
// IDEV AFFILIATE -- END
In their wizard, i just need to check either success page use http or https, but i believe most stdrd opencart success page will start with http.... already contact idevaffiliate support but still got no solution. just want to ask if anyone have successful try this integration before

Newbie

Posts

Joined
Fri Nov 18, 2011 2:52 pm

Post by tclim » Tue Jan 10, 2012 9:05 pm

Hi lochoe,

You can try to downloads Opencart iDevAffiliate module from http://www.opencart.com/index.php?route ... on_id=4585.

You can now seamlessly integrated Opencart with powerful iDevAffiliate program.

The Integration Covers the area for:

1) New Affiliate Sign Up Integration
2) Affiliate Login Integration
3) Forgot Your Password Integration
4) Sales Commissions Integration

It basically reused Opencart affiliate page and seamlessly integrate with iDevAffiliate Program.

Cheers,

tclim

New member

Posts

Joined
Fri Jun 24, 2011 10:54 am

Post by JNeuhoff » Wed Jul 10, 2013 5:33 am

tclim wrote:Hi lochoe,

You can try to downloads Opencart iDevAffiliate module from http://www.opencart.com/index.php?route ... on_id=4585.

You can now seamlessly integrated Opencart with powerful iDevAffiliate program.

The Integration Covers the area for:

1) New Affiliate Sign Up Integration
2) Affiliate Login Integration
3) Forgot Your Password Integration
4) Sales Commissions Integration

It basically reused Opencart affiliate page and seamlessly integrate with iDevAffiliate Program.

Cheers,

tclim
While it is easy enough to add the sales tracking code to Opencart's checkout/success.php, the real problem is idevaffiliate itself. I cannot recommend idevaffiliate, their recording of sales tracking and subsequent assignment of appropriate pending per-sale commission for affiliates is quite unreliable. Opencart's builtin affiliate system is much more reliable.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am

Who is online

Users browsing this forum: No registered users and 62 guests