Added Setup products to Preorder
This commit is contained in:
@@ -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'";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user