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);

Save snippets that work with our extensions

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