jfernandez Posted June 15, 2018 Share Posted June 15, 2018 Buenos dias a todos, estoy haciendo una consulta sql en el gestor de sql de prestashop. Es una consulta de combinaciones donde la consulta me sale bien todo menos el stock que no me lo muestra, esta es la consulta " SELECT pat.id_product , prd.reference , GROUP_CONCAT(DISTINCT(concat(atgl.name, ":", atg.group_type, ":", atg.POSITION)) SEPARATOR ", ") , GROUP_CONCAT(DISTINCT(concat(pal.name, ":", atg.POSITION)) SEPARATOR ", ") , pat.supplier_reference , pat.reference , p.id_product FROM ps_product_attribute pat INNER JOIN ps_product prd ON (prd.id_product = pat.id_product) LEFT JOIN ps_product_attribute_combination pac ON (pat.id_product_attribute = pac.id_product_attribute) LEFT JOIN ps_attribute att ON (pac.id_attribute = att.id_attribute) LEFT JOIN ps_attribute_group atg ON ( atg.id_attribute_group = att.id_attribute_group) LEFT JOIN ps_attribute_group_lang atgl ON ( atgl.id_attribute_group = atg.id_attribute_group) LEFT JOIN ps_attribute_lang pal ON (pac.id_attribute = pal.id_attribute AND pal.id_lang = atgl.id_lang) LEFT JOIN ps_stock_available pq ON ( p.id_product = pat.id_product AND pat.id_product_attribute = pac.id_product_attribute ) WHERE atgl.id_lang = 1 GROUP BY pat.id_product_attribute ORDER BY pat.id_product, pac.id_attribute " Esto es lo que no me va " LEFT JOIN ps_stock_available pq ON ( p.id_product = pat.id_product AND pat.id_product_attribute = pac.id_product_attribute )" Alguien que me pueda echar una mano. Gracias. Link to comment Share on other sites More sharing options...
Sergio Ruiz Posted June 18, 2018 Share Posted June 18, 2018 Mira ver este tema: https://www.prestashop.com/forums/topic/329498-export-all-products-including-combinations/ Suerte. Link to comment Share on other sites More sharing options...
jfernandez Posted June 18, 2018 Author Share Posted June 18, 2018 5 hours ago, Sergio Ruiz said: Mira ver este tema: https://www.prestashop.com/forums/topic/329498-export-all-products-including-combinations/ Suerte. Gracias probare a ver que tal. 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