It's just here that I got stuck on a problem that I don't quite understand!
I tried restoring all the products that were running fine:
$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);
Except I only need to display products with a predefined ID.
Use the constructor to get a specific
Product
instance viaid_product
.