Jump to content

Affiliate Linking to group


Recommended Posts

Has anyone tried editing the * to link to a specific product category rather than an actual product id?

 

I have 3 products under the same group and I want my affiliates to be able to be affiliated with either of the 3 products in that group.

 

Any help would greatly be appreciated.

 

Thank you,

Robert

Link to comment
Share on other sites

Hi disgruntled,

 

I am not using a mod. I know you can link to a particular product in WHMCS. I need to link to the Group so an affiliate can get credit for either of the 3 products someone purchases.

 

Here is what WHMCS Support says:

 

Regrettably there isn't an option to link directly to a product group, only a specific product. However you should be able to customise the * file yourself to achieve this.

 

If you are unable to create a module yourself feel free to request a quotation from our community by posting in our Marketplace forum or oDesk group: http://forum.whmcs.com/forumdisplay.php?f=49

 

Here is a link to my group I am trying to link too:

 

https://rkswebdesigns.com/billing/cart.php?gid=10

Link to comment
Share on other sites

Never mind you everyone. I got it figured out. I edited my * file and it is now working like I want it too.

 

Original *:

 

if ($pid) {

 

header("Location: cart.php?a=add&gid=$pid");

 

exit;

 

Changed to:

 

if ($gid) {

 

header("Location: cart.php?a=add&gid=$gid");

 

exit;

 

My Banner link looks like:

 

<a href="https://mydomain.com/whmcs/cart.php?aff=015&gid=10"><img src="http://www.mydomain.com/banners/image.gif" width="468" height="60" border="0"></a>

Link to comment
Share on other sites

if you have unencrypted file *, i am fairly certain that you are, from what i recall but i will check and drop back in, this file is not as standard an unencrypted file. i may be wrong and il get back to you because my * is the default file no mod used.

 

 

I stand corrected, oh and FYI you didnt need to overwrite that you could have expanded it like this.

 

if ($pid) {    header("Location: cart.php?a=add&pid=$pid");    exit;
}
elseif ($gid) {
   header("Location: cart.php?gid=$gid");    exit;
}

also the a=add makes no sense to your scenario because you cant add a product group to the cart currently, i cant see a reason why you would want to though so i doubt there will be a place for it in the future.

 

your just directing to a product group, so all you need is the section i posted.

 

Further more, you can be really smart.. and make sure the links dont look like affiliate links at all... use mod rewrite, you will need to edit the code to dynamically find the affiliate id from some over area, but you could have a link like this.

 

http://example.com/whmcs/clientname/groupname

 

This would allow you to check the database, pull the client affid and group id for the assignment of affiliate and then direct to group id.

 

A more seo friendly url less likely to be seo penalised by the likes of google.

Edited by disgruntled
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