Jump to content

Show a link if Certain Conditions Are Met


dotcom22

Recommended Posts

Hello

 

I would like add a link inside header.tpl and show to customer only when logged in...I have see in Wiki for do that and no problem...but I would like show this link only if customer have already ordered a product...and in this case I don't see how I can do..

 

I have see is possible to show some link "if Certain Conditions Are Met" and I have make some test as explain here.. http://wiki.whmcs.com/Template_Syntax

 

I have try to include without success this inside header.tpl:

 

{if $products}<a href="mypage.php">My link</a>{/if}

 

Somebody can point me in the right direction ?

 

Many thanks

 

Cheers

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