Page 1 of 2
How does Opencart Affiliate work by default
Posted: Thu Dec 11, 2014 12:24 am
by wafflemeister
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
Re: How does Opencart Affiliate work by default
Posted: Thu Dec 11, 2014 1:11 am
by ocmta
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.
Re: How does Opencart Affiliate work by default
Posted: Thu Dec 11, 2014 2:57 am
by wafflemeister
Perfect, thank you!
How exactly would I be able to change the cookie period in the index.php?
Re: How does Opencart Affiliate work by default
Posted: Thu Dec 11, 2014 3:11 am
by ocmta
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.
Re: How does Opencart Affiliate work by default
Posted: Sun Feb 21, 2016 12:38 pm
by vincent_angbt
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
Re: How does Opencart Affiliate work by default
Posted: Sun Feb 21, 2016 12:39 pm
by vincent_angbt
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
Re: How does Opencart Affiliate work by default
Posted: Sun Feb 21, 2016 12:47 pm
by ocmta
Tracking code is saved in cookies after the initial request, it should not show up in the URL.
Re: How does Opencart Affiliate work by default
Posted: Sun Feb 21, 2016 1:00 pm
by vincent_angbt
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???
Re: How does Opencart Affiliate work by default
Posted: Sun Feb 21, 2016 1:07 pm
by ocmta
Last clicked
Re: How does Opencart Affiliate work by default
Posted: Tue Oct 25, 2016 2:37 am
by jkitz
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!
Re: How does Opencart Affiliate work by default
Posted: Tue Oct 25, 2016 8:05 am
by ocmta
jkitz wrote:in opencart 2.3?
catalog/controller/startup/startup.php
Re: How does Opencart Affiliate work by default
Posted: Wed Oct 18, 2017 10:15 pm
by Ida
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...
Re: How does Opencart Affiliate work by default
Posted: Thu Oct 19, 2017 12:01 am
by ocmta
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.
.
Re: How does Opencart Affiliate work by default
Posted: Thu Oct 19, 2017 6:51 pm
by clivem
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
Re: How does Opencart Affiliate work by default
Posted: Thu Oct 19, 2017 6:55 pm
by ocmta
catalog/controller/startup/startup.php
.
Re: How does Opencart Affiliate work by default
Posted: Wed Dec 13, 2017 2:04 am
by siptec
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...
Re: How does Opencart Affiliate work by default
Posted: Wed Dec 13, 2017 2:30 am
by straightlight
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.
Re: How does Opencart Affiliate work by default
Posted: Fri Apr 10, 2020 11:30 pm
by nightwing
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...
Re: How does Opencart Affiliate work by default
Posted: Fri Apr 10, 2020 11:33 pm
by straightlight
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.
Re: How does Opencart Affiliate work by default
Posted: Fri Apr 10, 2020 11:51 pm
by nightwing
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.