Jump to content

Sales Statistic By Customer Group In Prestashop 1.6


Recommended Posts

Hello

i have to create a few different customer group, about 20-30 of different customer group,

I need to get sales statistic of those group, have you got any idea how can i do it?
is there any modules which offer sales statistic by customers group?

 

Thanks a lot,

Regards

ArcziD3

Edited by ArcziD3 (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 years later...

Hi, use this query to get sales by user group.

SELECT ga.name , sum(po.total_paid) as totalpaid FROM `ps_orders` po 
LEFT JOIN ps_customer_group pcg ON pcg.id_customer = po.id_customer
LEFT JOIN ps_group_lang ga ON ga.id_group = pcg.id_group
WHERE Date(po.date_add) between "2019-01-01" and "2019-01-31" 
GROUP BY pcg.id_group;

  • Like 1
Link to comment
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
×
×
  • Create New...