Jump to content

Hiding Certain Links


EscalateSEO

Recommended Posts

I have certain links in my header.tpl that I am trying to hide. This is the code I am using for one:

 

{if $services.product eq 'Linked Product' && $services.status eq 'Active'}<li><a href="link.php" title="Link">Linked Product</a></li>{else}{/if}

 

And Linked Product is the name of the product people need to have in order to see it.

 

It would be greatly appreciated if someone could tell me what I'm doing wrong.

Link to comment
Share on other sites

Those variables are likely not available in the header template. they would only be available in the clientareaproductdetails.tpl file. You'll either need to use some {php} tags to check if the client has the product you're checking for, and return a variable to smarty, or use the _ClientArea() actionhook to do the same thing.

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