Jump to content

Pb stats du catalogue par category


Recommended Posts

bonjour
mon module stat pour le catalogue marche pour le catalogue complet mais quand je selectionne une categories ca me donne un message d''erruer


SELECT SUM(od.`product_quantity`) AS bought
FROM `ps_orders` o
LEFT JOIN `ps_order_detail` od ON o.`id_order` = od.`id_order`
LEFT JOIN `ps_category_product` cp ON cp.`id_product` = p.`id_product`
WHERE o.valid = 1
AND cp.`id_category` = 5

Quelque un sait ce quil se passe??

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...