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