Dave_Johns 0 Posted December 27, 2020 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 0 Quote Share this post Link to post Share on other sites
Kian 316 Posted December 28, 2020 Use AffiliateClickthru hook point to redirect users anywhere you want with a PHP header location. 0 Quote Share this post Link to post Share on other sites
Dave_Johns 0 Posted December 30, 2020 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 0 Quote Share this post Link to post Share on other sites
dandju 1 Posted December 31, 2020 If anyone else needs assistance with this, please get in touch by private message. Here to help. Daniel 0 Quote Share this post Link to post Share on other sites
Kian 316 Posted December 31, 2020 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. 0 Quote Share this post Link to post Share on other sites
Dave_Johns 0 Posted December 31, 2020 Hi @Kian Thank you so much for your help! I did what you say and it works :) Have an amazing 2021! Best, Dave 0 Quote Share this post Link to post Share on other sites
Ithiel 3 Posted January 15 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. 0 Quote Share this post Link to post Share on other sites