Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
WIP Indicate low quantity available
Marcin Gębala70fbe7f598ff
diff --git a/templates/dashboard/product/product_variant/detail.html b/templates/dashboard/product/product_variant/detail.htmlindex d8c30f13f0..9485ce1994 100644--- a/templates/dashboard/product/product_variant/detail.html+++ b/templates/dashboard/product/product_variant/detail.html@@ -93,7 +93,7 @@</thead><tbody>{% for stock_item in stock %}- <tr data-action-go="{% url "dashboard:variant-stock-details" product_pk=product.pk variant_pk=variant.pk stock_pk=stock_item.pk %}">+ <tr class="{% if stock_item.quantity_available == 0 %}{% endif %}" data-action-go="{% url "dashboard:variant-stock-details" product_pk=product.pk variant_pk=variant.pk stock_pk=stock_item.pk %}"><td class="wide">{{ stock_item.location }}</td><td>{{ stock_item.quantity }}</td><td>{{ stock_item.quantity_allocated }}</td>