I am trying to integrate a custom affiliate software into my WHMCS.
I have added the following into header.tpl in my template:
where AF-xxxxxxx is a redacted version of the actual numbers.
This works when I go straight to my site using https://domain/whmcs/?ref=1 or https://domain/cart.php?a=view&ref=1 - it applies a cookie to the browser. So all is well there. YAY!
However - I am using direct links for checkout. For example:
When I follow this link - the cookie is not set. As if its completely dropping the &ref=1 portion.
I am starting to run in circles here and would really appreciate any help that you guys can provide.