Jump to content

Product Price in non WHMCS page


Adamski

Recommended Posts

I'm trying to pull prices from WHMCS db to display on a non WHMCS page. That bit I can do! I also want the corresponding config option prices and that is where I am getting stuck.

 

I cant for the life of me work out what the right SELECT statement is. Does anyone know what the relid in tblpricing refers to for configoptions and how I associate the configoptions data with the product data?

 

TIA

 

Adam

Link to comment
Share on other sites

Try:

 

SELECT tblpricing.*, tblproductconfigoptions.* FROM tblpricing, tblproductconfigoptions WHERE tblpricing.relid = tblproductconfigoptions.id AND tblpricing.type = 'configoptions'

 

To make it more efficient you would define each field you need instead of getting them all.

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