Dave_Johns Posted December 27, 2020 Share 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 Link to comment Share on other sites More sharing options...
Kian Posted December 28, 2020 Share Posted December 28, 2020 Use AffiliateClickthru hook point to redirect users anywhere you want with a PHP header location. 0 Quote Link to comment Share on other sites More sharing options...
Dave_Johns Posted December 30, 2020 Author Share 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 Link to comment Share on other sites More sharing options...
dandju Posted December 31, 2020 Share Posted December 31, 2020 If anyone else needs assistance with this, please get in touch by private message. Here to help. Daniel 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted December 31, 2020 Share 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. 1 Quote Link to comment Share on other sites More sharing options...
Dave_Johns Posted December 31, 2020 Author Share 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 Link to comment Share on other sites More sharing options...
Ithiel Posted January 15, 2021 Share Posted January 15, 2021 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.