{% extends "storefront/base.html" %} {% load storefront %} {% block title %}{{ product.name }} — {{ site.site_name }}{% endblock %} {% block description %}{{ product.short_description|default:product.name|truncatechars:160 }}{% endblock %} {% block content %}
{% if images|length > 1 %} {% endif %}
{% if product.brand %}{{ product.brand }}{% endif %}

{{ product.name }}

Артикул: {{ product.sku }}
{{ product.price|money }} ₽ {% if product.old_price %} {{ product.old_price|money }} ₽ −{{ product.price|discount_percent:product.old_price }}% {% endif %}
{% if product.stock > 0 %}
В наличии: {{ product.stock }} шт.
{% elif product.stock_status == 'preorder' %}
Под заказ
{% else %}
Нет в наличии
{% endif %} {% if product.short_description %}

{{ product.short_description }}

{% endif %} {% if product.stock > 0 %}
Перейти в корзину {% else %} {% endif %} {% if product.description %}
{{ product.description|linebreaks }}
{% endif %}
{% if attributes %}

Характеристики

{% for name, value in attributes.items %} {% endfor %}
{{ name }}{{ value|attr_value }}
{% endif %} {% if related %}

Похожие товары

{% if product.category %} Вся категория {% endif %}
{% for item in related %} {% include "storefront/_product_card.html" with product=item %} {% endfor %}
{% endif %} {% endblock %} {% block scripts %} {% endblock %}