Jump to content

Change design if a customer come from a affiliate


Amonal

Recommended Posts

Hello all,

 

I would like that when a visitor come from an affiliate, the whmcs change the design. Exactly adding a banner.

 

I am using {debug} mode and I added this code line:

{if $condlinks.affiliates eq "on"}Test From Reseller{/if}

 

I would like that when a visitor come from a reseller, exacly from reseller ID 11, appears a banner.

 

I check all variables in debug mode, and I can not find any variable to get this information.

Example that I need: {if visitor come from reseller id eq "11"} show banner {/if}

 

WHMCS says that there is not any variable in Smarty Template.

 

Do you know how to make it?

Thank you

Link to comment
Share on other sites

I can think of a work around: http://forum.whmcs.com/showthread.php?83178-Open-Source-Affiliate-Coupons-Promo-Code-(instead-of-link)&highlight=affiliate

 

1. Make a new template which is basically the same as your current one but with the banner

2. Confirm the module works with the latest version then take out all of the coupon parts via the template files.

3. Use the custom landing page feature to link directly to that template. Now, whenever a visitor comes from that affiliate link they will be redirected to the WHMCS template with the banner.

 

Optional: You can probably hide the custom landing page feature also if you like, or possibly make it admin-only etc etc

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