Post by ashaw25 » Fri Apr 17, 2015 6:39 am

Hello. I have an Affiliate module active on my site (came with the installation). I sell bath/body/candle products and I have a lady that wants to refer people to my site using an affiliate link so they can purchase and she receives commission. However, it looks like how this module works though, is that she has to generate an affiliate link per PRODUCT instead of an affiliate link that takes them to the home page and lets them shop amongst various categories giving her credit for all of the products they buy. Does anyone know of another module that will do that?

Thank you very much in advance!

Newbie

Posts

Joined
Fri Apr 17, 2015 6:36 am

Post by ocmta » Tue Apr 21, 2015 4:26 am

You can easily add the homepage link with tracking to any affiliate template like this:
  • In openCart 1:

    Code: Select all

    <?php echo HTTPS_SERVER . '?tracking=' . $this->affiliate->getCode(); ?>
  • In openCart 2:

    Code: Select all

    <?php echo HTTPS_SERVER . '?tracking=' . $this->registry->get('affiliate')->getCode(); ?>
Also, when the link points to a product page, that does not mean affiliate will not be credited for purchases of other products.

When users access any openCart page with tracking links, tracking code is saved in cookies for 1000 days and will be used in all their orders of any products, even a year later (unless they clear their cookies).

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 4andilyn » Mon Apr 27, 2015 10:03 am

Where exactly (what file) would this line of code need to be entered?

Newbie

Posts

Joined
Thu Apr 16, 2015 7:24 pm

Post by ocmta » Mon Apr 27, 2015 1:08 pm

In catalog/view/theme/<your_theme_name>/template/affiliate/ - account.tpl and / or tracking.tpl

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 4andilyn » Mon Apr 27, 2015 7:54 pm

I'm using Open Cart 2.0.2.0 so do I just put this line of code anywhere on those files?

In openCart 2:
<?php echo HTTPS_SERVER . '?tracking=' . $this->registry->get('affiliate')->getCode(); ?>

Newbie

Posts

Joined
Thu Apr 16, 2015 7:24 pm

Post by ocmta » Mon Apr 27, 2015 8:02 pm

Those files are html templates with some php for dynamic data, so you should put this code where you want it appear, not just anywhere. This code will display the homepage URL with tracking code, where / how to use it in html - that's up to you.

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

Who is online

Users browsing this forum: No registered users and 5 guests