SQL
// active products with current stock
SELECT
p.id_product,
p.reference,
sa.quantity
FROM
ps_product
p
JOIN
ps_stock_available
sa
ON
sa.id_product = p.id_product
WHERE
p.active =
1;
Intermediate
PrestaHacks
7 min read
PrestaShop SQL Manager: 15 useful queries worth saving
Not every catalogue check in PrestaShop needs an export, a module or a custom script. For many day-to-day jobs, a well-targeted SELECT is enough to…
SQL Manager
PrestaShop SQL