Chuchelandia Posted February 18, 2019 Share Posted February 18, 2019 Buenas tardes, tengo una duda, llevo dandole vueltas un tiempo pero no consigo dar con la tecla. Quiero hacer una consulta SQL para ver las referencias de pedidos que contengan un determinado id de producto, pero no encuentro ninguna formula que me resuelva dicha consulta. Tengo Prestashop 1.6.1. A ver si alguien me puede echar un cable, gracias!!!!!☺️ Link to comment Share on other sites More sharing options...
gusman126 Posted February 18, 2019 Share Posted February 18, 2019 Cambia el 663 por el id del producto Cambia psps_ por tu prefijo select od.id_order,o.reference,p.id_product from psps_product p left join psps_order_detail od on p.id_product = od.product_id left join psps_orders o on o.id_order = od.id_order where p.id_product = 663 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now