Разделение описания в категории товаров
This commit is contained in:
@@ -155,6 +155,7 @@ $this->document->addScript('store/view/theme/dominik/assets/js/swiper-bundle.js'
|
||||
}
|
||||
|
||||
$data['description'] = html_entity_decode($category_info['description'], ENT_QUOTES, 'UTF-8');
|
||||
$data['description_bottom'] = html_entity_decode($category_info['description_bottom'], ENT_QUOTES, 'UTF-8');
|
||||
$data['compare'] = $this->url->link('product/compare');
|
||||
|
||||
$url = '';
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
<section class="products">
|
||||
<div class="container-fluid">
|
||||
{% if description %}
|
||||
<div class="text mb-4 text-center">{{ description|split("</p>")[0] ~ '</p>' }}</div>
|
||||
<div class="text mb-4 text-center">{{ description }}</div>
|
||||
{% endif %}
|
||||
{% if products %}
|
||||
<div class="row g-3 product-items">
|
||||
@@ -90,8 +90,8 @@
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
{% if description %}
|
||||
<div class="text my-5">{{ description }}</div>
|
||||
{% if description_bottom %}
|
||||
<div class="text my-5">{{ description_bottom }}</div>
|
||||
{% endif %}
|
||||
{% if not categories and not products %}
|
||||
<div class="py-4">
|
||||
|
||||
Reference in New Issue
Block a user