Ilyas Posted December 1, 2015 Share Posted December 1, 2015 Hey, I want to display a link in my menu for certain customers only. For example; I have 3 packages (x,y and z) y and z contains extra content and access to a certain part of the website. is this possible with whmcs? thx in advance! 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted December 1, 2015 Share Posted December 1, 2015 Yes, using Hooks:ClientAreaPage. In the hooked function you should query your database in order to retreive your true/false logic then you pass the result to Smarty declaring your custom variable. Finally in your .tpl file you will be able to use something like... {if $myvariableistrue}<li><a href="custom-page.php">My custom menu</a></li>{/if} 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.