Snippets Collections
Db::getInstance()->executeS("DELETE FROM product_images WHERE id_product NOT IN (" . join($allProductIds,',') . ")")
$id_lang=(int)Context::getContext()->language->id;
$start=0;
$limit=100;
$order_by='id_product';
 $order_way='DESC';
$id_category = false; 
$only_active =true;
$context = null;

$all_products=Product::getProducts($id_lang, $start, $limit, $order_by, $order_way, $id_category,
        $only_active ,  $context);
star

Tue Mar 02 2021 10:31:38 GMT+0000 (Coordinated Universal Time)

#prestashop #delete #mysql #db #database #ids
star

Tue Jan 05 2021 14:36:01 GMT+0000 (Coordinated Universal Time)

#prestashop #all #products #category

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension