From 63d19ff87cfba2ccc551ed73bf0ac88a6819efa8 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Thu, 18 Dec 2025 15:09:54 +0100 Subject: [PATCH] Added product_name filter in Order/Index --- Layout/default/Order/Index.php | 8 ++++++++ application/Order/OrderModel.php | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/Layout/default/Order/Index.php b/Layout/default/Order/Index.php index a84304f42..35974b831 100644 --- a/Layout/default/Order/Index.php +++ b/Layout/default/Order/Index.php @@ -111,6 +111,9 @@ + + +
@@ -130,6 +133,11 @@
+ +
+ + +
diff --git a/application/Order/OrderModel.php b/application/Order/OrderModel.php index f5e8ce0f2..4ff058a69 100644 --- a/application/Order/OrderModel.php +++ b/application/Order/OrderModel.php @@ -358,6 +358,13 @@ class OrderModel { $where .= " AND `Order`.name='$name'"; } } + + if(array_key_exists("product_name", $filter)) { + $product_name = FronkDB::singleton()->escape($filter['product_name']); + if($product_name) { + $where .= " AND `Product`.name LIKE '%$product_name%'"; + } + } if(array_key_exists("product_id", $filter)) { $product_id = $filter['product_id'];