Keep track of discontinued items. That means items that were tracked, but then they were never updated.Added is discontinued badge.

This commit is contained in:
Krzysztof Płaczek
2025-02-15 11:33:24 +01:00
parent 7eb7bf3eb2
commit 81f9c863c7
7 changed files with 52 additions and 9 deletions

View File

@@ -25,7 +25,10 @@
{% else %}
<span class="badge text-bg-warning">out of stock</span>
{% endif %}
{% if product.isnew() %}
{% if product.isDiscontinued() %}
<span class="badge text-bg-secondary">is discontinued</span>
{% endif %}
{% if product.isNew() %}
<span class="badge text-bg-success">is new</span>
{% endif %}
<span class="badge text-bg-light">{{ product.subTitle }}</span>