Skip to content

Commit

Permalink
Cat count fix (#183)
Browse files Browse the repository at this point in the history
Catalog count is not visible on frontend because of last html changes.
  • Loading branch information
Metalicss committed Jun 11, 2022
1 parent 09cc659 commit ea8a352
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/client/html/catalog/count/tree-body.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
var id = $(item).data("id");

if(catalogCounts[id]) {
$(":scope > a.cat-item", item).append('&nbsp;' + '<span class="cat-count">' + catalogCounts[id] + '</span>');
$("a.cat-link, a.name", item).append('&nbsp;' + '<span class="cat-count">' + catalogCounts[id] + '</span>');
} else if( $(item).hasClass("nochild") ) {
$(item).addClass("disabled");
}
});
// -->
<?php $this->block()->stop() ?>
<?= $this->block()->get( 'catalog/count/tree' ) ?>
<?= $this->block()->get( 'catalog/count/tree' ) ?>

0 comments on commit ea8a352

Please sign in to comment.