Jump to content

Stats: products sold by Brand


Chill_user
 Share

Recommended Posts

Hello,

This question is more SQL than prestashop.

I like to get number of products sold by brand.

For example: I need to see number of products (brand1) sold during the year 2020.

We have 'ps_order_details' where stored all products sold, and I need to go to the table 'ps_product', take 'id_brand' and check in the 'ps_manufacturer' if it's correct brand.

How to do this?

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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More