{% extends 'products/product_list.html' %} {% load static %} {% load core_tags %} {% load products_filters %} {% load mptt_tags %} {% block breadcrumbs %} {% breadcrumb_url 'Главная страница' 'index:index' %} {% breadcrumb_url 'Каталог' 'products:product_list' %} {% recursetree product.parent.get_ancestors %}
  • {{ node.name }}
  • {% if not node.is_leaf_node %} {{ children }} {% endif %} {% endrecursetree %} {% breadcrumb_url product.parent.name 'products:product_details' product.parent.get_path %} {% breadcrumb_url product.name 'products:product_details' product.get_path %} {% endblock breadcrumbs %} {% block right_common_content %}
    {{ product.name }}
    {% if product.productimage_set.exists %}
    {{ product.name }}
      {% for product_image in product.productimage_set.get_all_images %}
    • {{ product_image.name }}
    • {% endfor %}
    {% endif %}
    {% if product.offer.discount %}
    {{ product.offer.price }}{{ product.offer.currency.sign }}
    {% endif %} {% if product.offer.discount %}
    {{ product.offer.get_price_with_discount }}{{ product.offer.currency.sign }}
    {% else %}
    {{ product.offer.price }}{{ product.offer.currency.sign }}
    {% endif %} {% if product.offer.cashback > 0 %}
    Кэшбек {{ product.offer.cashback }}{{ product.offer.currency.sign }}
    {% endif %}
    {% if request.user.is_authenticated %}
    {% csrf_token %}
    Количество
    {% endif %}
    Описание
    {% if product.description|length > 0 %} {{ product.description|apply_desc_preview|safe }} {% else %} У данного товара описание отсутсвует {% endif %}
    {% if product.description|length > 0 %} Читать полностью {% endif %}
    {% endblock right_common_content %} {% block extra_post_content %} {% endblock extra_post_content %}