public static function getProduct($id_product)
 {
     if (count(self::$languages) === 0) {
         foreach (Language::getLanguages() as $language) {
             self::$languages[$language["id_lang"]] = $language["iso_code"];
         }
         self::$product_definition = Product::$definition['fields'];
     }
     return (array) self::initProduct($id_product);
 }
 protected function getProductsToIndex()
 {
     $products = array();
     $id_products = Db::getInstance()->executeS('SELECT `id_product` FROM `' . _DB_PREFIX_ . 'product` WHERE `active` IS TRUE');
     if (count($id_products) > 0) {
         foreach ($id_products as $id_product) {
             array_push($products, AlgoliaProduct::getProduct($id_product['id_product']));
         }
     }
     return $products;
 }