EscalateSEO Posted November 21, 2011 Share Posted November 21, 2011 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. 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted November 22, 2011 Share Posted November 22, 2011 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. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.