Тексты товаров в разные ячейки и 404 страница

This commit is contained in:
Konstantin
2026-05-30 12:02:09 +03:00
parent af9b7b13a4
commit 0774c39ba8
23 changed files with 101 additions and 12062 deletions
+2 -10
View File
@@ -52,20 +52,12 @@ $(document).ready(function() {
/* Search */
$('#search input[name=\'search\']').parent().find('button').on('click', function() {
var url = $('base').attr('href') + 'index.php?route=product/search';
var value = $('header #search input[name=\'search\']').val();
if (value) {
url += '&search=' + encodeURIComponent(value);
}
location = url;
return false;
});
$('#search input[name=\'search\']').on('keydown', function(e) {
if (e.keyCode == 13) {
$('header #search input[name=\'search\']').parent().find('button').trigger('click');
return false;
}
});
@@ -7,10 +7,10 @@
<div class="not-found-eyebrow">{{ text_eyebrow|default('Ошибка 404') }}</div>
<h1 class="heading">{{ heading_title|default('Страница не найдена') }}</h1>
<p class="subheading">{{ text_error|default('Похоже, эта страница больше не доступна или адрес был введён с ошибкой.') }}</p>
<p>{{ text_hint|default('Вернитесь на главную или воспользуйтесь поиском, чтобы найти нужный раздел.') }}</p>
<p>{{ text_hint|default('Вернитесь на главную или перейдите в каталог, чтобы найти нужный раздел.') }}</p>
<div class="not-found-actions">
<a href="{{ continue }}" class="btn btn-dark">{{ button_home|default('На главную') }}</a>
<a href="{{ search|default(continue) }}" class="btn btn-outline-dark">{{ button_search|default('Поиск') }}</a>
<a href="{{ catalog|default(continue) }}" class="btn btn-outline-dark">{{ button_catalog|default('Каталог') }}</a>
<a href="{{ contact|default(continue) }}" class="btn btn-white">{{ button_contact|default('Связаться') }}</a>
</div>
</div>
@@ -53,7 +53,7 @@
</li>
<li><a href="{{ history }}">{{ text_cart }}</a></li>
<li><a href="{{ checkout }}">{{ text_checkout }}</a></li>
<li><a href="{{ search }}">{{ text_search }}</a></li>
<li><a href="{{ catalog|default(home) }}">{{ text_catalog|default('Каталог') }}</a></li>
<li>{{ text_information }}
<ul>
{% for information in informations %}
@@ -125,42 +125,36 @@
{% endif %}
<div class="mt-5">
<button type="button" class="btn btn-dark py-3 px-5 w-mob-100" onclick="SendRequest('{{ product_id }}')">Записаться на примерку</button>
</div>
<div class="mt-5">
{% set description = description|split('__NEWLINE__') %}
<ul class="nav nav-tabs mb-3 justify-content-center justify-content-md-start" id="myTab" role="tablist">
{% set i = 0 %}
{% for item in range(0,5) %}
{% if description[item] or (item == 0 and attribute_groups) %}
<li class="nav-item" role="presentation">
<button class="nav-link {{ i == 0 ? 'active' : '' }}" id="home-tab-{{ item }}" data-bs-toggle="tab" data-bs-target="#home-{{ item }}" type="button" role="tab" aria-controls="home-{{ item }}" aria-selected="{{ i == 0 ? 'true' : 'false' }}">
{% if item == 0 %}
Описание
{% elseif item == 1 %}
Первый прокат
{% elseif item == 2 %}
Второй прокат
{% elseif item == 3 %}
Покупка
{% elseif item == 4 %}
Условия
{% endif %}
</button>
</li>
</div>
<div class="mt-5">
{% set description_tabs = [
{'title': 'Описание', 'content': description, 'show_attributes': true},
{'title': 'Первый прокат', 'content': description_first_rental},
{'title': 'Второй прокат', 'content': description_second_rental},
{'title': 'Покупка', 'content': description_purchase},
{'title': 'Условия', 'content': description_terms}
] %}
<ul class="nav nav-tabs mb-3 justify-content-center justify-content-md-start" id="myTab" role="tablist">
{% set i = 0 %}
{% for tab in description_tabs %}
{% if tab.content or (tab.show_attributes and attribute_groups) %}
<li class="nav-item" role="presentation">
<button class="nav-link {{ i == 0 ? 'active' : '' }}" id="home-tab-{{ loop.index0 }}" data-bs-toggle="tab" data-bs-target="#home-{{ loop.index0 }}" type="button" role="tab" aria-controls="home-{{ loop.index0 }}" aria-selected="{{ i == 0 ? 'true' : 'false' }}">{{ tab.title }}</button>
</li>
{% set i = i + 1 %}
{% endif %}
{% endfor %}
</ul>
<div class="tab-content" id="myTabContent">
{% set i = 0 %}
{% for item in range(0,5) %}
{% if description[item] or (item == 0 and attribute_groups) %}
<div class="tab-pane fade {{ i == 0 ? 'show active' : '' }}" id="home-{{ item }}" role="tabpanel" aria-labelledby="home-tab-{{ item }}">
{% if item == 0 and attribute_groups %}
</ul>
<div class="tab-content" id="myTabContent">
{% set i = 0 %}
{% for tab in description_tabs %}
{% if tab.content or (tab.show_attributes and attribute_groups) %}
<div class="tab-pane fade {{ i == 0 ? 'show active' : '' }}" id="home-{{ loop.index0 }}" role="tabpanel" aria-labelledby="home-tab-{{ loop.index0 }}">
{% if tab.show_attributes and attribute_groups %}
<div class="mb-4">
{% for attribute_group in attribute_groups %}
@@ -177,9 +171,9 @@
</div>
{% endfor %}
</div>
{% endif %}
{{ description[item] }}
</div>
{% endif %}
{{ tab.content }}
</div>
{% set i = i + 1 %}
{% endif %}
@@ -747,4 +741,3 @@ $(document).ready(function() {
//--></script>
#}