Jump to content

affiliate code number


farjad24

Recommended Posts

the variable will only be available in the templates that whmcs defines to use it.. if you want to use it on another page where this variable doesn't automatically exist, then there are a couple of options...

 

1. if you have access to $referrallink on that page, you might be able to manipulate it using Smarty to just obtain the affiliate number... add {debug} to the end of the code in the template you want to use the variable in - it should create a popup window with a list of variables and arrays available to you... hopefully one of them will contain the affiliate ID.

 

2. alternatively, you may need to query the database to get the value - the link below shows how to do it in php on an external page...

 

http://forum.whmcs.com/showthread.php?84507-variable-for-Affiliate-ID-not-full-link&p=358698#post358698

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