Jump to content
rikman

Showing client-> product -> details on client area home page

Recommended Posts

I am currently trying to show the same information presented in the clientareaproductdetails.tpl file on the clientareahome.tpl.

I am able to get a list of of product details id associated with the client, however i am unable to present or call information.  I tried to call the tpl file to test, but {if $tplOverviewTabOutput} is returning false and i am unsure how that is called and {$product} is empty.

Thank you in advance for the help!

Share this post


Link to post
Share on other sites
On 11/06/2019 at 14:43, rikman said:

I am currently trying to show the same information presented in the clientareaproductdetails.tpl file on the clientareahome.tpl.

in what way? how would you handle a client having multiple products ??

On 11/06/2019 at 14:43, rikman said:

I am able to get a list of of product details id associated with the client, however i am unable to present or call information.  I tried to call the tpl file to test, but {if $tplOverviewTabOutput} is returning false and i am unsure how that is called and {$product} is empty. 

using code from another template wouldn't work if the required array used by that code is missing.

ultimately, you're going to have to query the database for details of your product's clients.

Share this post


Link to post
Share on other sites
2 hours ago, brian! said:

in what way? how would you handle a client having multiple products ??

using code from another template wouldn't work if the required array used by that code is missing.

ultimately, you're going to have to query the database for details of your product's clients.

I was able to extract the ids from the product and services home panel,  then i would loop those ids and get the product details.  My first try was to insert the tpl file with the same parameters like the nav bar.  However it seems like it doesn't work and seems like the wrong approach as you mentioned.

 

How would i query the database and show said data?  I am also new to hooks and WHMCS, and i couldn't figure out how i get the client id to start a query or hook or if i need a hook or even how to read the hook.  Thanks in advance!

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

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