techwthquestion Posted December 13, 2019 Share Posted December 13, 2019 (edited) 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 December 13, 2019 by techwthquestion 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 13, 2019 Share Posted December 13, 2019 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; 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.