Jump to content

how to call the service id or client id?


Kianzo

Recommended Posts

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&amp;id={$product.pid}">Dashboard</a></li>
<li><a href="clientarea.php?action=productdetails&amp;id={$serviceid}&amp;dosinglesignon=1&amp;app=Email_Accounts">Email Accounts</a></li>
<li><a href="clientarea.php?action=productdetails&amp;id={$serviceid}&amp;dosinglesignon=1&amp;app=FileManager_Home">File Manager</a></li>
</ul>
</li>
{/if}

 

I'm editing menu.tpl in a theme I bought.

 

Thanks

Link to comment
Share on other sites

  • 2 weeks later...
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}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated