Ravg Posted January 27, 2021 Share Posted January 27, 2021 I would like to detect if client has any active product from hooks and inside the tpl files, How to do it? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 28, 2021 Share Posted January 28, 2021 from inside any client area template, once they're logged in, you can access {$clientsstats.productsnumactive} which contains the number of active services (not domains) that client has. so to detect if the current user has active services... {if $clientsstats.productsnumactive gt 0)do something{/if} similarly, you could access that value directly in a hook, or there are many other ways to get the information - classes, querying the database etc. 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.