Jump to content

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


rikman

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!

Link to comment
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.

Link to comment
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!

 

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