piku Posted August 13, 2014 Share Posted August 13, 2014 Hello! When I add a simple test code {if $logged} <p>Hello, you are logged in</p>{/if} to any tpl page within my template it doesn't work. the code seems to be ignored by the catalog mode. Is this a bug or can I change this behaviour somewhere? thx, piku Link to comment Share on other sites More sharing options...
piku Posted August 13, 2014 Author Share Posted August 13, 2014 (edited) Now I checked with a disabled catalog mode and the code above works! SO I guess the correct option is: How can I avoid the catalog mode from turning of using the "$logged" hook? Edited August 13, 2014 by piku (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted August 13, 2014 Share Posted August 13, 2014 it really depends on where you are placing your code. what are you trying to accomplish? Link to comment Share on other sites More sharing options...
piku Posted August 13, 2014 Author Share Posted August 13, 2014 (edited) I am trying to simply hide the downloads of attachments in catalog mode if (only if) the user is not logged in. Put differently: I want to offer free downloads on product pages only for registered users while the shop is set to catalog mode only. that's it basically but I really tested and the code line above works once I disable catalog mode. I guess there must be some special condition for user rights within catalog mode. Any idea, EL Patron? :-) Edited August 13, 2014 by piku (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now