BryanB Posted September 17, 2011 Share Posted September 17, 2011 I'm trying to do something like: if admin = John then do x on /whmcs/admin/clientsummary.tpl but it looks like the {$admin_username} variable is not available on that template page.... How can I identify who the admin user is on the clientsummary.tpl page? I'll even use PHP if smarty syntax wont work but not sure how... I never understood why smarty variables aren't available on all templates? {$admin_username} is available in the header but not in the clientsummary.tpl page. 0 Quote Link to comment Share on other sites More sharing options...
sdemidko Posted September 18, 2011 Share Posted September 18, 2011 Hi Bryan not sure which variable is available in cartsummary template, but you can always check that manually - just put {debug} into template and you will see popup window with all available variables and their values. 0 Quote Link to comment Share on other sites More sharing options...
BryanB Posted September 18, 2011 Author Share Posted September 18, 2011 Hi Bryannot sure which variable is available in cartsummary template, but you can always check that manually - just put {debug} into template and you will see popup window with all available variables and their values. Indeed. That's what I've done but {$admin_username} is not available on client_summary.tpl so I'm wondering what to do in order to determine what admin user is logged in while on cart_summary.tpl... I don't see any other admin user variables. 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.