This commit is contained in:
Laurent Destailleur 2019-03-14 17:08:45 +01:00
parent e414d210fb
commit 4a9694782c

View File

@ -49,7 +49,7 @@ if ($action=="getProducts") {
echo json_encode($prods); echo json_encode($prods);
} }
else if ($action=="search") { elseif ($action=="search") {
$sql = 'SELECT * FROM '.MAIN_DB_PREFIX.'product'; $sql = 'SELECT * FROM '.MAIN_DB_PREFIX.'product';
$sql .= ' WHERE entity IN ('.getEntity('product').')'; $sql .= ' WHERE entity IN ('.getEntity('product').')';
$sql .= ' AND tosell = 1'; $sql .= ' AND tosell = 1';