Added Setup products to Preorder

This commit is contained in:
Frank Schubert
2022-05-17 15:28:16 +02:00
parent 117b56a301
commit e01f803fbb
7 changed files with 109 additions and 25 deletions

View File

@@ -105,7 +105,8 @@ class ProductModel {
WHERE $where
GROUP BY Product.id";
$res = $db->select("Product", "*", "$where ORDER BY name, producttech_id");
$res = $db->query($sql);
//$res = $db->select("Product", "*", "$where ORDER BY name, producttech_id");
if($db->num_rows($res)) {
while($data = $db->fetch_object($res)) {
$items[] = new Product($data);
@@ -151,7 +152,7 @@ class ProductModel {
if(array_key_exists("attributename", $filter)) {
$attributename = $db->escape($filter['attributename']);
if($attributename) {
$where .= " AND ProductAttribute.name = '$attributename'";
$where .= " AND ProducttechAttribute.name = '$attributename'";
}
}