Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
UI improvements
Pacu2590ef383538f
diff --git a/saleor/dashboard/product/forms.py b/saleor/dashboard/product/forms.pyindex 21f0d75831..27baa1f5c3 100644--- a/saleor/dashboard/product/forms.py+++ b/saleor/dashboard/product/forms.py@@ -245,8 +245,8 @@ class ProductVariantForm(forms.ModelForm, AttributesMixin):labels = {'sku': pgettext_lazy('SKU', 'SKU'),'price_override': pgettext_lazy(- 'Override price', 'Override price'),- 'quantity': pgettext_lazy('Integer number', 'Quantity'),+ 'Override price', 'Selling price override'),+ 'quantity': pgettext_lazy('Integer number', 'Number in stock'),'cost_price': pgettext_lazy('Currency amount', 'Cost price')}def __init__(self, *args, **kwargs):diff --git a/templates/dashboard/product/product_variant/detail.html b/templates/dashboard/product/product_variant/detail.htmlindex bf5f567179..898fd8f392 100644--- a/templates/dashboard/product/product_variant/detail.html+++ b/templates/dashboard/product/product_variant/detail.html@@ -81,10 +81,9 @@</div></div><br>- <p class="card-title">{% trans "Stock" %}</p><div class="row"><div class="col s5 m6">- <p class="text-padding">{% trans "Quantity" context "Dashboard variant details view" %}</p>+ <p class="text-padding">{% trans "Number in stock" context "Dashboard variant details view" %}</p></div><div class="col s7 m6"><p class="text-padding right-align">{{ variant.quantity }}</p>@@ -124,7 +123,9 @@<img class="responsive-img" src="{{ image.image.crop.255x255 }}" srcset="{{ image.image.crop.255x255 }} 1x, {{ image.image.crop.510x510 }} 2x" alt="{{ image.alt }}"></div>{% empty %}+ <div class="col s4">{% trans "No images" %}+ </div>{% endfor %}</div></div>diff --git a/templates/dashboard/product/product_variant/form.html b/templates/dashboard/product/product_variant/form.htmlindex 43876d79e9..6fd182e036 100644--- a/templates/dashboard/product/product_variant/form.html+++ b/templates/dashboard/product/product_variant/form.html@@ -88,6 +88,9 @@<div class="row">{{ form.price_override|materializecss }}</div>+ <div class="row">+ {{ form.cost_price|materializecss }}+ </div></div></div></div>