steelaz Posted October 5, 2010 Share Posted October 5, 2010 I want to do some modifications to shopping cart pages, but I don't want everyone else to see work in progress. Is there a way to add condition in the template that checks if you're logged in as administrator (so only admin would see modifications)? 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted October 5, 2010 Share Posted October 5, 2010 Add an if statement like this {if $smarty.session.adminid>0}...... {/if} 0 Quote Link to comment Share on other sites More sharing options...
steelaz Posted October 6, 2010 Author Share Posted October 6, 2010 Thanks, I forgot about Smarty session variable. 0 Quote Link to comment Share on other sites More sharing options...
layz Posted December 11, 2011 Share Posted December 11, 2011 i know this is an old thread but i found this very useful. thank you! 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.