fix: Улучшить отображение цены в списке комплектов
Теперь цена в таблице productkit_list отображается по аналогии с all_products_list: - Зачёркнутая обычная цена, если есть скидка - Красная цена со скидкой (sale_price) - Красный значок 'Акция' - Иначе просто обычная цена Файл: products/templates/products/productkit_list.html
This commit is contained in:
@@ -50,7 +50,16 @@
|
||||
-
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{ kit.get_sale_price|floatformat:2 }} руб.</td>
|
||||
<td>
|
||||
{% if kit.sale_price %}
|
||||
<span class="text-decoration-line-through text-muted small">{{ kit.price|floatformat:2 }} руб.</span>
|
||||
<br>
|
||||
<strong class="text-danger">{{ kit.sale_price|floatformat:2 }} руб.</strong>
|
||||
<span class="badge bg-danger ms-1">Акция</span>
|
||||
{% else %}
|
||||
<strong>{{ kit.price|floatformat:2 }} руб.</strong>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
<span class="badge bg-secondary">{{ kit.get_total_components_count }} шт</span>
|
||||
{% if kit.get_components_with_variants_count > 0 %}
|
||||
|
||||
Reference in New Issue
Block a user