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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user