From 02fb4cefd3d3d0af3ad87de1168dd22955f00202 Mon Sep 17 00:00:00 2001 From: Jacek Pyziak Date: Sun, 9 Feb 2025 23:19:05 +0100 Subject: [PATCH] Update product cache metadata and add custom class for deleted products --- .vscode/ftp-kr.sync.cache.json | 12 ++++++------ autoload/controls/class.Products.php | 3 +++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.vscode/ftp-kr.sync.cache.json b/.vscode/ftp-kr.sync.cache.json index bf3d61b..80ab077 100644 --- a/.vscode/ftp-kr.sync.cache.json +++ b/.vscode/ftp-kr.sync.cache.json @@ -41,8 +41,8 @@ }, "class.Products.php": { "type": "-", - "size": 6777, - "lmtime": 1736159781898, + "size": 7374, + "lmtime": 1738181132982, "modified": false }, "class.Site.php": { @@ -73,8 +73,8 @@ }, "class.Products.php": { "type": "-", - "size": 4108, - "lmtime": 1736159665616, + "size": 4157, + "lmtime": 1738181399119, "modified": false }, "class.Users.php": { @@ -2718,8 +2718,8 @@ "products": { "main_view.php": { "type": "-", - "size": 6808, - "lmtime": 1736161322024, + "size": 7415, + "lmtime": 1738180720857, "modified": false }, "product_history.php": { diff --git a/autoload/controls/class.Products.php b/autoload/controls/class.Products.php index 998c7ad..a5f0028 100644 --- a/autoload/controls/class.Products.php +++ b/autoload/controls/class.Products.php @@ -38,6 +38,9 @@ class Products $custom_class = 'custom_name'; } + if ( $custom_label_4 == 'product_deleted' ) + $custom_class = 'text-danger'; + $data['data'][] = [ $row['product_id'], $row['offer_id'],