does anyone know how opencart handles the situation if a customer had clicked on links from multiple affiliates before actually making a purchase?
say a user clicks though initially from affiliate 1 site doesnt buy but then returns a few weeks later from a link on affiliate 2 website and then concludes the transaction.
Which affiliate would be credited with the commission? The first, the most recent cookie or ??
Reason: Title adjusted
The url that is created for tracking would look something like this:
Code: Select all
'link' => str_replace('&', '&', $this->url->link('product/product', 'product_id=' . $result['product_id'] . '&tracking=' . $this->affiliate->getCode()))
Here is the code that makes the affiliates connecting UNIQUE (all of the time)
Code: Select all
if (isset($request->get['tracking']) && !isset($request->cookie['tracking'])) {
setcookie('tracking', $request->get['tracking'], time() + 3600 * 24 * 1000, '/');
}
If someone followed an affiliate link last week, looked at the item, didnt buy, left, closed the window, turned the computer off. A week later, follows a link from another affiliate, but actually buys the product.
Then obviously, the affilate who gets the comission, is the one whos link was used to purchase the item.
It would be a bit silly to continually track all affiliates linked to a product that has been viewed, since product inception.
And since no purchase was made on the first attempt, its only fair that they dont receive the commission.
Huh? That makes 0 sense.....where is the second affiliate link? Send both URL's for the separate affiliate links.skimottaret wrote:interesting as during testing it looks as though if a customer clicks through from affiliate 1's link and makes a purchase THEN after loggin out and clicks through from affilate 2 link and makes a second purchase in another session affiliate 1 gets the commission in our opencart shop
This is true, and also even a user's first visit was via affilaite 1's link, but he didn't buy anything, and then later visits and buy via affiliate 2's link, still only affiliate 1 gets the commission.skimottaret wrote:interesting as during testing it looks as though if a customer clicks through from affiliate 1's link and makes a purchase THEN after loggin out and clicks through from affilate 2 link and makes a second purchase in another session affiliate 1 gets the commission in our opencart shop
Affiliate 1's tracking code cookie will stay saved in cookies for 1000 days, and won't be replaced by any other affiliate's tracking code no matter what (unless the user clears cookies, of course).
This actually makes some sense, and many affiliate programs work that way, because 2nd, 3rd etc. affiliates direct the user to a site he knows already, while the 1st affiliate was the one who "showed" this site to the user, and deserves more credit. This is controversial, though.
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
No, this is not true. It should not work that way. Like was mentioned above if that is happening then it is a bug. I need to set something up to try it for myself, to echo out the actual sessions.ocmta wrote:This is true, and also even a user's first visit was via affilaite 1's link, but he didn't buy anything, and then later visits and buy via affiliate 2's link, still only affiliate 1 gets the commission.skimottaret wrote:interesting as during testing it looks as though if a customer clicks through from affiliate 1's link and makes a purchase THEN after loggin out and clicks through from affilate 2 link and makes a second purchase in another session affiliate 1 gets the commission in our opencart shop
Affiliate 1's tracking code cookie will stay saved in cookies for 1000 days, and won't be replaced by any other affiliate's tracking code no matter what (unless the user clears cookies, of course).
This actually makes some sense, and many affiliate programs work that way, because 2nd, 3rd etc. affiliates direct the user to a site he knows already, while the 1st affiliate was the one who "showed" this site to the user, and deserves more credit. This is controversial, though.
Code: Select all
if (isset($request->get['tracking']) && !isset($request->cookie['tracking'])) {
setcookie('tracking', $request->get['tracking'], time() + 3600 * 24 * 1000, '/');
}
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: 7cswinery and 82 guests