ArmourHosting Posted May 26, 2015 Share Posted May 26, 2015 I am trying to develop my own client panel theme and need to display a list of servers that a client has. I need this to be available on all pages. I am trying to make a menu dropdown where it will list all the services. This is my attempt but it did not work. It only works when i load the products page. {foreach from=$services item=service} <li> <a href="clientarea.php?action=productdetails&id={$service.id}">{$service.domain}</a> </li> {foreachelse} <li> <a href="#">none</a> </li> {/foreach} It is searching for services but cannot find any and keeps displaying none. Why can't it find the client's services? Also, how do i make this more specific? I would like to list only the client's shared hosting plans under shared hosting and same for their dedicated and VPS plans that they have. Thanks in advance. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted May 26, 2015 Share Posted May 26, 2015 you need to use Action Hooks to get client products from Database and pass it to smarty, so it will as it did in products/services page. http://docs.whmcs.com/Hooks 0 Quote Link to comment Share on other sites More sharing options...
ArmourHosting Posted June 3, 2015 Author Share Posted June 3, 2015 Do you know what the code should be or how it is formatted? 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.