NadalKumar Posted March 9, 2019 Share Posted March 9, 2019 WHMCS is in a subfolder called manager and I wish to append affiliate ID to the url of HTML pages in the host root (public_html) and be able to track the affiliate code. Example The default WHMCS method mysite.com/manager/*?aff=127 I want to be able to do mysite.com/great-page?aff=127 What hook can I write to make that work? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 10, 2019 Share Posted March 10, 2019 you may be better off using the Affiliates Land Anywhere addon from Marketplace - hooks won't be applicable here as they're triggered in specific WHMCS pages, and if you're wanting to do this outside of WHMCS, then they won't be triggered. there was also the free WHMCS Affiliates Anywhere addon, but that hasn't been updated for a few years, and while it probably still works with the latest WHMCS release, I doubt that it would be PHP7 compatible (so in practice may not work). possibly you could adapt aff. php to work outside of WHMCS (it isn't encoded), but i'm not sure... and i'm not inclined to spend time testing the idea! 0 Quote Link to comment Share on other sites More sharing options...
NadalKumar Posted March 15, 2019 Author Share Posted March 15, 2019 I reviewed the free module and it was exhaustive coding. If that is what is required to externally processing affiliate tracking, I'll have to abandon the idea. Too much potential for breakage. It would be simpler to use a standalone affiliate manager application. Thanks for the info. 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.