Jump to content

sales manufacturers


Recommended Posts

Hi all, 

I'm trying to get sales tent manufacturer and backoffice statistics for a page in the store. It was if someone could lend me a cable that do not really know how to do it because they do not get the sales charts. I'm with the docu but not cleared me. Someone help me 

Greetings !!

Link to comment
Share on other sites

Ah, so you need the db query? In that case try with

 

SELECT COUNT(DISTINCT(o.id_order))

FROM ps_orders o

LEFT JOIN ps_order_detail od ON (od.id_order = o.id_order)
LEFT JOIN ps_product p ON (p.id_product = od.id_product)

WHERE p.id_manufacturer = 1

 

 

of course 1 must be the manufacturer id you want

Link to comment
Share on other sites

×
×
  • Create New...