Correction de select_produits tri par nbvente

This commit is contained in:
Rodolphe Quiedeville 2005-08-25 07:44:48 +00:00
parent 744b1db12b
commit bda868be54

View File

@ -453,7 +453,7 @@ class Form
$sql.= " FROM ".MAIN_DB_PREFIX."product as p ";
$sql.= " WHERE p.envente = 1";
if ($filtretype && $filtretype != '') $sql.=" AND p.fk_product_type=".$filtretype;
$sql.= " ORDER BY p.ref";
$sql.= " ORDER BY p.nbvente DESC";
if ($limit) $sql.= " LIMIT $limit";
$result=$this->db->query($sql);