Kianzo Posted February 9, 2021 Share Posted February 9, 2021 I want to add a menu item for Product Details. so if the client id is: 3 the link should be: https://example.com/clientarea.php?action=productdetails&id=3 also https://example.com/clientarea.php?action=productdetails&id=3&dosinglesignon=1&app=Email_Accounts I tried id={$serviceid} id={$product.pid} id={$item['relid']} id={$service_id} id={$tblproducts.id} id={$vars['params']['serviceid']} Nothing worked with me my code: {if $loggedin} <li data-username="dashboard" class="nav-item coodiv-hasmenu"> <a class="nav-link"><span class="coodiv-micon"><i class="feather icon-sliders"></i></span><span class="coodiv-mtext">Control Panel</span></a> <ul class="coodiv-submenu"> <li><a href="{$WEB_ROOT}/clientarea.php?action=productdetails&id={$product.pid}">Dashboard</a></li> <li><a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1&app=Email_Accounts">Email Accounts</a></li> <li><a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1&app=FileManager_Home">File Manager</a></li> </ul> </li> {/if} I'm editing menu.tpl in a theme I bought. Thanks 0 Quote Link to comment Share on other sites More sharing options...
Kianzo Posted February 20, 2021 Author Share Posted February 20, 2021 up 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 21, 2021 Share Posted February 21, 2021 On 09/02/2021 at 13:45, Kianzo said: I want to add a menu item for Product Details. so if the client id is: 3 you wouldn't pass a client ID to productdetails - in order to use the page, the client would already be logged in.... you would pass a service ID value to get a particular service, e.g using either id = {$id} or if = {$serviceid} 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.