Jump to content

affiliate links and cookies?


mnymkr

Recommended Posts

will the affiliate link drop the cookie if you direct it to any page in WHMCS , for instance the product page or can it only be the home / front page?

 

Yes it will.

 

The affiliate link when it is clicked goes to http://yourdomain.com/*

This sets the cookie on the users (clickers) computer then sets the header to permanently redirect to the home page by default. The redirection can be set to any page you want. You can also change the amount of time the cookie is set for.

 

Just edit *

eg.

If you want to redirect straight to you order page change the last line to

 

header("Location: ".$CONFIG["Domain"]."/cart.php");

 

(Don't forget the full stop)

Link to comment
Share on other sites

  • 1 month later...
I need to be able to link direct to a product for a specific affiliate.

 

I'd like all affiliate links to go to my home page, but I have create a branded splash page for one of my affiliates. When people he sends to the splash page clicks SIGN-UP I would like it to add the following product http://interactiveonline.com/billing/cart.php?a=add&pid=77 to the cart with his affiliate ID.

 

According to the posts I have found on this forum, this doesn't appear to be possible yet. Correct?

 

I figured out how to accomplish this. I created a new * file and named it aff-youjoomla.php. I then added the following to the file:

 

header("Location: ".$CONFIG["Domain"]."/billing/cart.php?a=add&pid=77");

 

I then gave the new affiliate link to my affiliate:

http://interactiveonline.com/billing/aff-youjoomla.php?aff=058

 

Using that affiliate code takes this specific affiliate link to the specific product in WHMCS. I tested it and it works

Link to comment
Share on other sites

Yes it will.

 

The affiliate link when it is clicked goes to http://yourdomain.com/*

This sets the cookie on the users (clickers) computer then sets the header to permanently redirect to the home page by default. The redirection can be set to any page you want. You can also change the amount of time the cookie is set for.

 

Just edit *

eg.

If you want to redirect straight to you order page change the last line to

 

header("Location: ".$CONFIG["Domain"]."/cart.php");

 

(Don't forget the full stop)

 

 

What page would I edit to do something like this and add my Links for my Affilates on the page? http://tshosting.com.au/affiliate.php

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated