63 lines
2.2 KiB
HTML
63 lines
2.2 KiB
HTML
title = "Ассортимент"
|
|
url = "/category-page/:slug"
|
|
layout = "master-new-inside"
|
|
meta_title = "Ассортимент"
|
|
is_hidden = 0
|
|
|
|
[CategoryPage]
|
|
slug = "{{ :slug }}"
|
|
slug_required = 1
|
|
smart_url_check = 1
|
|
has_wildcard = 0
|
|
skip_error = 0
|
|
|
|
[ProductList]
|
|
sorting = "no"
|
|
==
|
|
{% set obCategory = CategoryPage.get() %}
|
|
{% set obProductList = ProductList.make().sort(ProductList.getSorting()).active().category(obCategory.id) %}
|
|
|
|
|
|
{% partial 'new/breadcrumb' secondPage=this.page.meta_title catName = obCategory.name %}
|
|
|
|
<section class="category">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
|
|
<div class="product-box">
|
|
<div class="cat-box d-flex justify-content-between">
|
|
<h1>{{ obCategory.name }}</h1>
|
|
</div>
|
|
|
|
<div class="tab-content">
|
|
<div class="tab-pane fade show active" id="grid" role="tabpanel">
|
|
<div class="row">
|
|
|
|
{% if obProductList.isNotEmpty() %}
|
|
|
|
{% for obProduct in obProductList %}
|
|
|
|
<!-- <h1>{{obProduct}}</h1><br><br> -->
|
|
<div class="col-6 col-md-4 col-lg-4">
|
|
{% partial 'product/category-item-inside' obProduct = obProduct class = "tab" sale = obProduct.featured %}
|
|
</div>
|
|
{% endfor %}
|
|
|
|
{%else%}
|
|
<div class="col-sm-12">
|
|
<h3 style="text-align: center;color: #4e75ff;">Пусто</h3>
|
|
</div>
|
|
{%endif%}
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section> |