Jump to content

Whats name of the table that stored all purchased products ?


vladka

Recommended Posts

Hello.

 

I need to get all client that bought product with id = 15.

And i can't find connection between tblproducts and tblclients.

 

Also i can't find WHMCS database scheme, and i think its a big minus for WHMCS as a commercial product.

 

Can anyone tells me how does i can get all client that bought some product ?

 

Thank you

Link to comment
Share on other sites

Hello.

 

I need to get all client that bought product with id = 15.

And i can't find connection between tblproducts and tblclients.

 

Also i can't find WHMCS database scheme, and i think its a big minus for WHMCS as a commercial product.

 

Can anyone tells me how does i can get all client that bought some product ?

 

Thank you

 

Hi

 

You can search the database from your WHMCS Admin panel by going to:

 

Clients > Products/Services > -Other Services > Click on the "Search/Filter" Tab

 

A search box will open and you can then set your criteria. For example, you can search for all clients who have an active order for a particular product by specifying the "Product/Service" from the list and then set the "Status" search option to "Active".

 

This will generate a list of active clients who have ordered and paid for that product.

Link to comment
Share on other sites

The tblhosting table contains all of the purchased products/services. The foreign key to tblclients is userid and the foreign key for tblproducts is packageid.

 

To see a list of client ids who bought the product with the ID 15 and is currently active, the query would be:

 

SELECT DISTINCT(userid) from tblhosting where packageid = 15 and domainstatus = 'Active';

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