Jump to content

How to hook into * from external document?


Recommended Posts

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?

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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.

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