Hide "Catalog List Type" selector and "Sort"
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Hide "Catalog List Type" selector and "Sort"
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; ?>
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"
Yes, would make sense. Are you able to create a pull request on GitHub for this?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star