Post by wafflemeister » Thu Dec 11, 2014 12:24 am

Hey guys,

I have a question in regards to the Affiliate program of opencart the way it comes with version 1.5.6.4.

If the affiliate creates a product link for let's say product 1 and a customer customer clicks on it to be redirected to product 1 but ends up purchasing product 2, does the affiliate get a commission on the sales of product 2?

I have tested it and it seems that the affiliate does get commission, which I find contradicting to everything else I have read so far which pointed to the believe that affiliate links are product specific.

I would greatly appreciate some clarification.

Thank you in advance.

WaffleMeister

Active Member

Posts

Joined
Fri Jun 21, 2013 11:10 pm

Post by ocmta » Thu Dec 11, 2014 1:11 am

Affiliate links are not product-specific. The link even doesn't have to point to product page.

As long as the URL contains tracking code (tracking=affiliate_tracking_code), users can enter the site with it, the code then saved in cookies for 1000 days, and, unless they clear cookies, all orders they make during 1000 days are tracked, and affiliate will get commission for all products in all these orders.

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


Active Member

Posts

Joined
Mon Mar 12, 2012 11:21 am


Post by wafflemeister » Thu Dec 11, 2014 2:57 am

Perfect, thank you!

How exactly would I be able to change the cookie period in the index.php?

Active Member

Posts

Joined
Fri Jun 21, 2013 11:10 pm

Post by ocmta » Thu Dec 11, 2014 3:11 am

Find this line:

Code: Select all

setcookie('tracking', $request->get['tracking'], time() + 3600 * 24 * 1000, '/');
and change 1000 to whatever number of days you want.

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


Active Member

Posts

Joined
Mon Mar 12, 2012 11:21 am


Post by vincent_angbt » Sun Feb 21, 2016 12:38 pm

ocmta wrote:Find this line:

Code: Select all

setcookie('tracking', $request->get['tracking'], time() + 3600 * 24 * 1000, '/');
and change 1000 to whatever number of days you want.

Hi, i try to generate a tracking link, but when i click on it and go to the store, when i click to other product, the product doesnt come with the tracking code anymore.

my version is 2.1.0.2., my store is:
https://cococorner.my/index.php?route=p ... 6d36250cff

New member

Posts

Joined
Tue Dec 17, 2013 11:35 am

Post by vincent_angbt » Sun Feb 21, 2016 12:39 pm

ocmta wrote:Find this line:

Code: Select all

setcookie('tracking', $request->get['tracking'], time() + 3600 * 24 * 1000, '/');
and change 1000 to whatever number of days you want.

Hi, i try to generate a tracking link, but when i click on it and go to the store, when i click to other product, the product doesnt come with the tracking code anymore.

my version is 2.1.0.2., my store is:
https://cococorner.my/index.php?route=p ... 6d36250cff

New member

Posts

Joined
Tue Dec 17, 2013 11:35 am

Post by ocmta » Sun Feb 21, 2016 12:47 pm

Tracking code is saved in cookies after the initial request, it should not show up in the URL.

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


Active Member

Posts

Joined
Mon Mar 12, 2012 11:21 am


Post by vincent_angbt » Sun Feb 21, 2016 1:00 pm

ocmta wrote:Tracking code is saved in cookies after the initial request, it should not show up in the URL.
If the buyer click on another affiliate link, then when he check out and purchased, the system will recognition its belong to which affiliate???

New member

Posts

Joined
Tue Dec 17, 2013 11:35 am

Active Member

Posts

Joined
Mon Mar 12, 2012 11:21 am


Post by jkitz » Tue Oct 25, 2016 2:37 am

In what file / location does one edit the line:

Code: Select all

setcookie('tracking', $request->get['tracking'], time() + 3600 * 24 * 1000, '/');
in opencart 2.3?

I haven't been able to find it. Thanks!

Newbie

Posts

Joined
Thu Sep 01, 2016 10:28 am
Location - Ottawa, Canada

Post by ocmta » Tue Oct 25, 2016 8:05 am

jkitz wrote:in opencart 2.3?
catalog/controller/startup/startup.php

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


Active Member

Posts

Joined
Mon Mar 12, 2012 11:21 am


Post by Ida » Wed Oct 18, 2017 10:15 pm

I need help. I registered an affiliate, approved her, got her code, everything. I myself clicked on her link, was directed to the site, bought a dummy product and paid for it with my credit card, completed the order in my dashboard, and still i dont see it on the commission report. I dont know what else to do...

Ida
Newbie

Posts

Joined
Wed Oct 18, 2017 9:51 pm

Post by ocmta » Thu Oct 19, 2017 12:01 am

If you can see commission on the order info page, then it's there, just not added to your affiliate account (because you don't have it configured to be added automatically, or order status doesn't match, or for some other reason). In that case you can add it to affiliate account by clicking Add Commission on the order info page. If you don't see it on the order info page, then information you can provide in the forum is not enough, you should find someone who can debug this problem and give them access to your system to find out.

.

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


Active Member

Posts

Joined
Mon Mar 12, 2012 11:21 am


Post by clivem » Thu Oct 19, 2017 6:51 pm

i also want to change the affiliate number of days from 1000 - i am using 2.3.0.2 - can you tell me in which files and folders to find this please.
many thanks
clive

New member

Posts

Joined
Mon Jun 12, 2017 8:18 pm

Active Member

Posts

Joined
Mon Mar 12, 2012 11:21 am


Post by siptec » Wed Dec 13, 2017 2:04 am

Ida wrote:
Wed Oct 18, 2017 10:15 pm
I need help. I registered an affiliate, approved her, got her code, everything. I myself clicked on her link, was directed to the site, bought a dummy product and paid for it with my credit card, completed the order in my dashboard, and still i dont see it on the commission report. I dont know what else to do...
Got the same problem...

User avatar
New member

Posts

Joined
Mon Sep 17, 2012 11:32 pm

Post by straightlight » Wed Dec 13, 2017 2:30 am

siptec wrote:
Wed Dec 13, 2017 2:04 am
Ida wrote:
Wed Oct 18, 2017 10:15 pm
I need help. I registered an affiliate, approved her, got her code, everything. I myself clicked on her link, was directed to the site, bought a dummy product and paid for it with my credit card, completed the order in my dashboard, and still i dont see it on the commission report. I dont know what else to do...
Got the same problem...
Correct. It seem to be the same problem. On both statements, the OC version was not posted to analyze this issue.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by nightwing » Fri Apr 10, 2020 11:30 pm

I think in OC Version 3, the auto commission needs to be allowed in: Store Settings > Options > Automatic Commission
Quick question: Is it possible to switch this around a bit...
This cookie lasts for 5 days, however, this only gives commission on the first checkout (cookie gets deleted after purchase). So if the buyer comes back within the 5 days (cookie window) after making the first purchase, that commission won't be added.
siptec wrote:
Wed Dec 13, 2017 2:04 am
Ida wrote:
Wed Oct 18, 2017 10:15 pm
I need help. I registered an affiliate, approved her, got her code, everything. I myself clicked on her link, was directed to the site, bought a dummy product and paid for it with my credit card, completed the order in my dashboard, and still i dont see it on the commission report. I dont know what else to do...
Got the same problem...

Regards,
Nightwing
Access to my Free Extensions: https://www.opencart.com/index.php?rout ... =nightwing


Active Member

Posts

Joined
Tue Nov 05, 2019 11:08 pm


Post by straightlight » Fri Apr 10, 2020 11:33 pm

seanstorm100 wrote:
Fri Apr 10, 2020 11:30 pm
I think in OC Version 3, the auto commission needs to be allowed in: Store Settings > Options > Automatic Commission
Quick question: Is it possible to switch this around a bit...
This cookie lasts for 5 days, however, this only gives commission on the first checkout (cookie gets deleted after purchase). So if the buyer comes back within the 5 days (cookie window) after making the first purchase, that commission won't be added.
siptec wrote:
Wed Dec 13, 2017 2:04 am
Ida wrote:
Wed Oct 18, 2017 10:15 pm
I need help. I registered an affiliate, approved her, got her code, everything. I myself clicked on her link, was directed to the site, bought a dummy product and paid for it with my credit card, completed the order in my dashboard, and still i dont see it on the commission report. I dont know what else to do...
Got the same problem...
It may require an extension to accomplish this.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by nightwing » Fri Apr 10, 2020 11:51 pm

Ok straightlight, I will checkout a few.
straightlight wrote:
Fri Apr 10, 2020 11:33 pm
seanstorm100 wrote:
Fri Apr 10, 2020 11:30 pm
I think in OC Version 3, the auto commission needs to be allowed in: Store Settings > Options > Automatic Commission
Quick question: Is it possible to switch this around a bit...
This cookie lasts for 5 days, however, this only gives commission on the first checkout (cookie gets deleted after purchase). So if the buyer comes back within the 5 days (cookie window) after making the first purchase, that commission won't be added.
siptec wrote:
Wed Dec 13, 2017 2:04 am

Got the same problem...
It may require an extension to accomplish this.

Regards,
Nightwing
Access to my Free Extensions: https://www.opencart.com/index.php?rout ... =nightwing


Active Member

Posts

Joined
Tue Nov 05, 2019 11:08 pm

Who is online

Users browsing this forum: No registered users and 256 guests