From 7dff30126dbe5a783b190125487abaf01e8a1258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9lina?= Date: Tue, 30 Nov 2021 18:22:59 +0100 Subject: [PATCH] Show subcategories description --- htdocs/takepos/index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/takepos/index.php b/htdocs/takepos/index.php index e01a81ec94f..f86f710d169 100644 --- a/htdocs/takepos/index.php +++ b/htdocs/takepos/index.php @@ -300,7 +300,11 @@ function LoadProducts(position, issubcat) { jQuery.each(subcategories, function(i, val) { if (currentcat==val.fk_parent) { $("#prodivdesc"+ishow).show(); - $("#prodesc"+ishow).text(val.label); + global->TAKEPOS_SHOW_CATEGORY_DESCRIPTION == 1) { ?> + $("#prodesc"+ishow).html(val.label.bold() + ' - ' + val.description); + + $("#prodesc"+ishow).text(val.label); + $("#probutton"+ishow).text(val.label); $("#probutton"+ishow).show(); $("#proprice"+ishow).attr("class", "hidden");