Code: Select all
if (isset($_REQUEST['tracking']) && !isset($_COOKIE['tracking'])) setcookie('tracking', $_REQUEST['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
Thanks a lot, really simple and works properly!ocmta wrote:Add ?tracking=<code> (or &tracking=<code> if the URL already contains ? ) to the page's URL, and the page itself should contain following PHP code:Code: Select all
if (isset($_REQUEST['tracking']) && !isset($_COOKIE['tracking'])) setcookie('tracking', $_REQUEST['tracking'], time() + 3600 * 24 * 1000, '/');
www.insideoutskiing.com home page
http://www.insideoutskiing.com/sales/in ... ommon/home opencart shop
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
It seems that this solution works only when the root domain name is the same as the domain name of the root of the domain of the opencart installation.
How to do this if it is another domain ? What to change in the script to create the cookie for the right domain ?
thank you
Users browsing this forum: No registered users and 118 guests