+{% set amount = cart[product.getId()].amount ?? 0 %}
+
{{ title | length > 45 ? title | slice(0, 45) ~ '...' : title }}
{{ category.name[language] }}
+{{ category.name }}
{% endfor %} diff --git a/mirzaev/arming_bot/system/views/themes/default/catalog/elements/filters.html b/mirzaev/arming_bot/system/views/themes/default/catalog/elements/filters.html index d2be5bc..85da2da 100755 --- a/mirzaev/arming_bot/system/views/themes/default/catalog/elements/filters.html +++ b/mirzaev/arming_bot/system/views/themes/default/catalog/elements/filters.html @@ -4,11 +4,11 @@ {% set buffer_brand = account.buffer.catalog.filters.brand ?? session.buffer.catalog.filters.brand %} {% for brand in filters.brands %} diff --git a/mirzaev/arming_bot/system/views/themes/default/catalog/elements/products.html b/mirzaev/arming_bot/system/views/themes/default/catalog/elements/products.html index bf68fbf..e35d076 100755 --- a/mirzaev/arming_bot/system/views/themes/default/catalog/elements/products.html +++ b/mirzaev/arming_bot/system/views/themes/default/catalog/elements/products.html @@ -1,19 +1,25 @@ {% macro card(product) %} -{% set title = product.name[language] ~ ' ' ~ product.brand[language] ~ format_dimensions(product.dimensions.x, +{% set title = product.name ~ ' ' ~ product.brand ~ format_dimensions(product.dimensions.x, product.dimensions.y, product.dimensions.z, ' ') ~ ' ' ~ product.weight ~ 'г' %} -
+{% set amount = cart[product.getId()].amount ?? 0 %}
+
{{ title | length > 45 ? title | slice(0, 45) ~ '...' : title }}