Jump to content
Dave_Johns

Affiliate link

Recommended Posts

Hi!

I have installed the WHMCS on a subdomain (example: subdomain.domain.com) and the affiliate link goes directly to that.

How can I change to set us default the domain.com for the affiliate program?

I understand that I should do it on the * but I do not know how to do it

 

Thanks in advance

Dave

Share this post


Link to post
Share on other sites

Hi @Kian thanks for your reply.  Unfortunately I'm not a developer and I do not understand much about this... Do you know someone that could help me? (of course, paying)

Thanks!

Dave

Share this post


Link to post
Share on other sites
22 hours ago, Dave_Johns said:

Hi @Kian thanks for your reply.  Unfortunately I'm not a developer and I do not understand much about this... Do you know someone that could help me? (of course, paying)

Thanks!

Dave

Well, it is super simple. All it takes is this script.

<?php

add_hook('AffiliateClickthru', 1, function($vars)
{
    header('Location: https://google.com');
    die();
});

Place it in includes/hooks directory (create a file namedAsYouLike.php) and replace google.com with your site.

Share this post


Link to post
Share on other sites
On 1/1/2021 at 12:31 AM, Kian said:

Well, it is super simple. All it takes is this script.

Awesome! And how do people get the affiliate system they bought from you to work, @Kian? 😐

.... he says to draw attention to the over-one-year he's been waiting for Kian to fix a plugin, but at the same time saving this genuinly helpful script because it will come in handy once his affiliate program actually works.

Share this post


Link to post
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