You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Pages: 1
Where is the code that prevents an affiliate earning commission on purchases made whilst logged into the affilate account??
It seems pointless as the affiliate would just use a different email address to order.
Thanks
Rob
Offline
Commission is calculated in the 0200_affiliate.php file.
// +-- // | Don't do commissions if our user belongs to a group other // | than the 'users' group. // +-- $info = $this->CORE_Session->user_getinfo($order['order']['email'],'usergroup'); if (!(empty($info['usergroup']))) {$usergroup = $info['usergroup'];} else {$usergroup = 'users';} if ($this->debug) {$this->debugger("getcommamt: Determined customer's user group is '{$usergroup}'.");} if ($usergroup != 'users') { if ($this->debug) {$this->debugger("getcommamt: Customer is not in the user group 'users'. Commission set to zero.");} return array(); } // End of if statement.
You should be able to comment out the return array line like this-
// return array();
Offline
Pages: 1