Skip to content

Instantly share code, notes, and snippets.

Created Jan 24, 2014
What would you like to do?
Presta - cross selling - orders
SELECT o.id_order
FROM ps_orders o
LEFT JOIN ps_order_detail od ON (od.id_order = o.id_order)
WHERE o.valid = 1
AND od.product_id = 991
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment