Change filters, product lists, ...

This commit is contained in:
Roman Pyrih
2025-09-30 15:02:46 +02:00
parent 865d89efe1
commit c02b904f54
11 changed files with 365 additions and 199 deletions

View File

@@ -40,66 +40,73 @@
{include file='catalog/_partials/subcategories.tpl' subcategories=$subcategories}
{/if}
{/block}
{hook h="displayHeaderCategory"}
{* Start - Custom *}
{hook h="displayLeftColumn"}
{* End - Custom *}
<div class="row">
<div id="left-column" class="sidebar col-xs-12 col-sm-12 col-md-4 col-lg-3">
{* Start - Custom *}
{hook h="displayLeftColumn"}
{* End - Custom *}
</div>
<div id="content-wrapper" class="left-column col-xs-12 col-sm-12 col-md-8 col-lg-9">
<section id="products" class="t1">
{if $listing.products|count}
<section id="products" class="t1">
{if $listing.products|count}
{block name='product_list_top'}
{include file='catalog/_partials/products-top.tpl' listing=$listing}
{/block}
{block name='product_list_top'}
{include file='catalog/_partials/products-top.tpl' listing=$listing}
{/block}
{block name='product_list_active_filters'}
<div class="hidden-sm-down">
{$listing.rendered_active_filters nofilter}
</div>
{/block}
{block name='product_list_active_filters'}
<div class="hidden-sm-down">
{$listing.rendered_active_filters nofilter}
</div>
{/block}
{block name='product_list'}
{include file='catalog/_partials/products.tpl' listing=$listing productClass="col-xs-12 col-sm-6 col-lg-4 col-xl-3"}
{/block}
{block name='product_list'}
{include file='catalog/_partials/products.tpl' listing=$listing productClass="col-xs-12 col-sm-6 col-lg-4 col-xl-3"}
{/block}
{block name='product_list_bottom'}
{include file='catalog/_partials/products-bottom.tpl' listing=$listing}
{/block}
{block name='product_list_bottom'}
{include file='catalog/_partials/products-bottom.tpl' listing=$listing}
{/block}
{else}
<div id="js-product-list-top"></div>
{else}
<div id="js-product-list-top"></div>
<div id="js-product-list">
{capture assign="errorContent"}
<h4>{l s='No products available yet' d='Shop.Theme.Catalog'}</h4>
<p>{l s='Stay tuned! More products will be shown here as they are added.' d='Shop.Theme.Catalog'}</p>
{/capture}
<div id="js-product-list">
{capture assign="errorContent"}
<h4>{l s='No products available yet' d='Shop.Theme.Catalog'}</h4>
<p>{l s='Stay tuned! More products will be shown here as they are added.' d='Shop.Theme.Catalog'}</p>
{/capture}
{include file='errors/not-found.tpl' errorContent=$errorContent}
</div>
{include file='errors/not-found.tpl' errorContent=$errorContent}
</div>
<div id="js-product-list-bottom"></div>
{/if}
</section>
<div id="js-product-list-bottom"></div>
{/if}
</section>
</div>
</div>
{if $category.description}
<div id="js-product-list-header">
{if $listing.pagination.items_shown_from == 1}
<div class="block-category card card-block">
<h1 class="h1">{$category.name}</h1>
<div class="block-category-inner">
{if $category.description}
<div id="category-description" class="text-muted">{$category.description nofilter}</div>
{/if}
{if !empty($category.image.large.url)}
<div class="category-cover">
<img src="{$category.image.large.url}" alt="{if !empty($category.image.legend)}{$category.image.legend}{else}{$category.name}{/if}" loading="lazy" width="141" height="180">
</div>
{/if}
<div class="block-category card card-block">
<h1 class="h1">{$category.name}</h1>
<div class="block-category-inner">
{if $category.description}
<div id="category-description" class="text-muted">{$category.description nofilter}</div>
{/if}
{if !empty($category.image.large.url)}
<div class="category-cover">
<img src="{$category.image.large.url}"
alt="{if !empty($category.image.legend)}{$category.image.legend}{else}{$category.name}{/if}" loading="lazy"
width="141" height="180">
</div>
{/if}
</div>
</div>
{/if}
</div>
{/if}
@@ -108,4 +115,4 @@
{hook h="displayFooterCategory"}
</section>
{/block}
{/block}