Page 1 of 1

Hide "Catalog List Type" selector and "Sort"

Posted: 14 Mar 2017, 14:42
by Metalics
Hello,
I think it will be better if "Catalog List Type" selector and "Sort" are hidden when the selected category has no product assigned:

For Catalog List Type selector (client/html/templates/catalog/lists/body-default.php):
<?php if( ( $total = $this->get( 'listProductTotal', 0 ) ) > 0 ) : ?>
<div class="catalog-list-type">
-------
</div>
<?php endif; ?>

For Sorting (client/html/templates/catalog/lists/pagination-default.php):
$total = $this->total;

<?php if( $total > 1 ) : ?>
<div class="sort">
-------
</div>
<?php endif; ?>

Re: Hide "Catalog List Type" selector and "Sort"

Posted: 14 Mar 2017, 15:26
by aimeos
Yes, would make sense. Are you able to create a pull request on GitHub for this?