Show subcategories description

This commit is contained in:
Mélina 2021-11-30 18:22:59 +01:00
parent 3ca6743469
commit 7dff30126d

View File

@ -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);
<?php if ($conf->global->TAKEPOS_SHOW_CATEGORY_DESCRIPTION == 1) { ?>
$("#prodesc"+ishow).html(val.label.bold() + ' - ' + val.description);
<?php } else { ?>
$("#prodesc"+ishow).text(val.label);
<?php } ?>
$("#probutton"+ishow).text(val.label);
$("#probutton"+ishow).show();
$("#proprice"+ishow).attr("class", "hidden");