Code: Select all
$this->load->model('affiliate/affiliate');
if(isset($this->request->cookie['tracking'])) {
$affiliate_info = $this->model_affiliate_affiliate->getAffiliateByCode($this->request->cookie['tracking']);
//now you can use whatever fields you want, e.g.:
//firstname, lastname, email, telephone, fax, company, website, address_1, address_2, city etc.
$this->data['affiliate_firstname'] = $affiliate_info['firstname'];
$this->data['affiliate_lastname'] = $affiliate_info['lastname'];
//now use it in template as $affiliate_firstname , $affiliate_lastname etc.
} else {
$this->data['affiliate_firstname'] = '';
$this->data['affiliate_lastname'] = '';
}
Extensions for affiliates (openCart 1, 2, 3):
Advanced Multi Level Affiliate System
Customer and Affiliate Accounts Combined into one Account
Affiliate Tracking with Coupons
Discount for Referred Customers - Order Total
Type Tracking Code
Mass Pay
Affiliate Transactions for openCart 3
Affiliate Pack X - all modules with 40% discount
Not 100% sure what you mean, but i feel it's related to the discussion here . While testing you might just try clearing your cookies every time.sferris wrote:Another question that's sort of related. I'm testing a few different affiliates, but the first one I put in is the only one associating with orders. How can I get it to change affiliates?
Extensions for affiliates (openCart 1, 2, 3):
Advanced Multi Level Affiliate System
Customer and Affiliate Accounts Combined into one Account
Affiliate Tracking with Coupons
Discount for Referred Customers - Order Total
Type Tracking Code
Mass Pay
Affiliate Transactions for openCart 3
Affiliate Pack X - all modules with 40% discount
Users browsing this forum: Amazon [Bot] and 28 guests