Jump to content

Plus d'affichage des produits sans stock


Recommended Posts

Bonjour tout le monde,

J'ai besoin d'aide svp !

J'ai voulu faire du tri dans mes produits. Pour cela sur le tableau de bord, j'ai cliqué sur : 

Produits en rupture de stock

 

Et ensuite sur le deuxième tableau j'ai cliqué sur ETAT : OUI 

 

Depuis j'ai cette erreur : 

 

Unknown column 'sa.active' in 'where clause'

 

 

 

J'ai mis le DEV Mod en route pour voir l'erreur :

 

SELECT SQL_CALC_FOUND_ROWS
                                b.*, a.*
            
            FROM `ro_product` a
            LEFT JOIN `ro_product_lang` b ON (b.`id_product` = a.`id_product` AND b.`id_lang` = 1 AND b.`id_shop` = 1)
             INNER JOIN ro_product_shop product_shop
        ON (product_shop.id_product = a.id_product AND product_shop.id_shop = 1)
             WHERE 1 AND EXISTS (
            SELECT 1
            FROM `ro_product` p
             LEFT JOIN ro_stock_available stock
            ON (stock.id_product = p.id_product AND stock.id_shop = 1 AND stock.id_shop_group = 0 )
            WHERE a.id_product = p.id_product AND NOT EXISTS (
                SELECT 1
                FROM `ro_product_attribute` pa WHERE pa.id_product = p.id_product
            )
            AND IFNULL(stock.quantity, 0) <= 0
        ) AND sa.`active` = 1
            
             ORDER BY a.`id_product` DESC LIMIT 0, 300

 

 

at line 791 in file classes/db/Db.php

 

786. if ($webservice_call && $errno) {
787. $dbg = debug_backtrace();
788. WebserviceRequest::getInstance()->setError(500, '
 '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
789. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {
790. if ($sql) {
791. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
792. }
793.
794. throw new PrestaShopDatabaseException($this->getMsgError());
795. }
796. }

 

 

Pourriez vous m'aider svp car là je ne vois pas comment récupéré le tableau des produits en rupture de stock ?

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...