diff --git a/htdocs/takepos/index.php b/htdocs/takepos/index.php index eb310372075..88c39792636 100644 --- a/htdocs/takepos/index.php +++ b/htdocs/takepos/index.php @@ -233,7 +233,7 @@ function PrintCategories(first) { } $("#catdivdesc"+i).show(); global->TAKEPOS_SHOW_CATEGORY_DESCRIPTION == 1) { ?> + if (getDolGlobalString('TAKEPOS_SHOW_CATEGORY_DESCRIPTION') == 1) { ?> $("#catdesc"+i).html(categories[parseInt(i)+parseInt(first)]['label'].bold() + ' - ' + categories[parseInt(i)+parseInt(first)]['description']); $("#catdesc"+i).text(categories[parseInt(i)+parseInt(first)]['label']); @@ -272,7 +272,7 @@ function MoreCategories(moreorless) { } $("#catdivdesc"+i).show(); global->TAKEPOS_SHOW_CATEGORY_DESCRIPTION == 1) { ?> + if (getDolGlobalString('TAKEPOS_SHOW_CATEGORY_DESCRIPTION') == 1) { ?> $("#catdesc"+i).html(categories[i+( * pagecategories)]['label'].bold() + ' - ' + categories[i+( * pagecategories)]['description']); $("#catdesc"+i).text(categories[i+( * pagecategories)]['label']); @@ -305,7 +305,7 @@ function LoadProducts(position, issubcat) { jQuery.each(subcategories, function(i, val) { if (currentcat==val.fk_parent) { $("#prodivdesc"+ishow).show(); - global->TAKEPOS_SHOW_CATEGORY_DESCRIPTION == 1) { ?> + $("#prodesc"+ishow).html(val.label.bold() + ' - ' + val.description); $("#probutton"+ishow).html(val.label);