Jump to content

Help finding data


frodosghost

Recommended Posts

As you can tell by my posts I am new to WHMCS. I am not finding much help in google and am working on a deadline for finding information. That, and I am not familiar with the framework.

 

Anyways, I found out in this post that $_SESSION will show the current cart : Show Current Part and now I am wondering how to find the related data?

 

$_SESSION['cart']['products'][0]['pid'] Gives me a product_id - I was wondering if there was a way to get that data related to the 'pid'?

 

 

And. Is there best practice for showing data on a page. I understand if you create a page you can specifiy data - but what happens if I need it also in the header or footer? I would like to avoid querying from the tpl file (it makes me feel wrong)...

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