Jump to content

Need Some suggestions


techwthquestion

Recommended Posts

Hello,

Can someone tell me few ways to get / print customer id and product it ? Like using mysql or using API? 

To print/echo product id, I can use https://developers.whmcs.com/api-reference/getclientsproducts/ but it required to give cust id manually.

How can I use logged in customer Id in this code ? 

How can I echo/print customer id? 

 

Edited by techwthquestion
Link to comment
Share on other sites

13 minutes ago, techwthquestion said:

How can I echo/print customer id? 

the important question is where ??

if the client is logged in, then you could use {$clientsdetails.id} is any client Smarty template to output their customer id - and you would have access to it in hooks using $vars

if you're in a hook, you could use models and just do...

$client = Menu::context("client");
$clientid = $client->id;
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