Каталог товаров
- Сортировать по:
- Товаров на стр.:
{% include concat(template.path, '/catalog_filter.html') %}
{% for offer in offers %}
{% set total_offer_goods_count = 0 %} {# Создаем переменную для подсчета количества товаров по offer_number #}
{% set offer_goods_count = 0 %}
{% for param in offer.offer_parameters %}
{% set offer_goods_count = offer_goods_count + param.count %}
{% set total_offer_goods_count = total_offer_goods_count + param.count %} {# Суммируем количество товаров для текущего предложения #}
{% endfor %}
{% set total_goods_count = total_goods_count + offer_goods_count %}
{% set offer_poster = {url: ''} %}
{% for img in offer.images %}
{% if img.type == 1 %}
{% if img.pos == 0 %}
{% set offer_poster = img %}
{% endif %}
{% endif %}
{% endfor %}
{% if offer_poster.url == '' %}
{% for img in offer.offer_images %}
{% if img.type == 1 %}
{% if img.pos == 0 %}
{% set offer_poster = img %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% set offer_poster_url = template.path~'/img/noimage.jpg' %}
{% if offer_poster.urlSmall != '' %}
{% set offer_poster_url = ioProjects.trade~'/'~offer_poster.urlSmall %}
{% elseif offer_poster.url != '' %}
{% set offer_poster_url = ioProjects.trade~'/'~offer_poster.url %}
{% endif %}
{% set offer_name = offer.offer_name %}
{% if not offer_name %}
{% set offer_name = offer.goods_name[currentlang] %}
{% endif %}
{% set offer_cost_per_unit_min = {value: 0, currency: 'KZT'} %}
{% set offer_cost_per_unit_max = {value: 0, currency: 'KZT'} %}
{% for param in offer.offer_parameters %}
{% set param_cost_per_unit = param.cost_per_unit %}
{% set param_cost_per_unit = xadd(param_cost_per_unit, 'value', param_cost_per_unit.value / ioEnum.SI[offer.si_visible].coeff) %}
{% if param_cost_per_unit.value > offer_cost_per_unit_max.value %}
{% set offer_cost_per_unit_max = param_cost_per_unit %}
{% endif %}
{% if param_cost_per_unit.value < offer_cost_per_unit_min.value or offer_cost_per_unit_min.value == 0 %}
{% set offer_cost_per_unit_min = param_cost_per_unit %}
{% endif %}
{% endfor %}
{% endfor %}
-
{% if offer.category_name[currentlang] %}
- {{offer.category_name[currentlang]}} {% endif %} {% if offer.offer_discount and offer.offer_discount > 0 %}
- -{{offer.offer_discount}}% {% endif %}
в наличии {{total_offer_goods_count > 0 ? 'есть ('~total_offer_goods_count~')' : 'нет закажите'}}
{{offer_name|purify|raw}}
{% set tmp_colors = {} %}
{% set color_count = 0 %}
{% for param in offer.offer_parameters %}
{% if color_count < 10 %}
{% if not in_array(param.color_pkid, tmp_colors) %}
{% set color_name = '' %}
{% for color in colors %}
{% if color.pkid == param.color_pkid %}
{% set color_name = color.name[currentlang] %}
{% endif %}
{% endfor %}
{{color_name}}
{% set tmp_colors = xadd(tmp_colors, null, param.color_pkid) %}
{% set color_count = color_count + 1 %}
{% endif %}
{% endif %}
{% endfor %}
{% if offer.offer_discount and offer.offer_discount > 0 %}
{{number_format(offer_cost_per_unit_min.value - ((offer_cost_per_unit_min.value / 100) * offer.offer_discount), 2, '.', ' ')}} {{offer_cost_per_unit_min.currency}}
{% else %}
{{format_money(offer_cost_per_unit_min, false)|purify|raw}}
{% endif %}
{##}
Найдено товаров: {{offers_count}}. Показано с {{start + 1}} по {{start + offers|length}}
{{widgetRender('advert_text3', 'Не нашли нужный товар?')}}
{{widgetRender('advert_text2', 'Сделайте заказ!')}}
Популярные товары
Товары со скидкой
New Arrival
Logo
Collection
£18.00 – £30.00
Beanie with
Logo
£69.00
£50.00
T-Shirt with
Logo
£18.00
Single
£72.00
£69.00
Album
£55.66
£30.00
Polo
£20.00
Long Sleeve
Tee
£25.00
{% set widgetname = 'review' %}
{% set list = widgetData(widgetname, default) %}