Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Added missing label for filter 'price' + moved update button outside of the price filter section (fixes #2168)

NyanKiyoshi62b9afc28518
diff --git a/saleor/product/models.py b/saleor/product/models.py
index 497df12458..59392a96ca 100644
--- a/saleor/product/models.py
+++ b/saleor/product/models.py
@@ -98,7 +98,8 @@ class Product(SeoModel):
Category, related_name='products', on_delete=models.CASCADE)
price = MoneyField(
currency=settings.DEFAULT_CURRENCY, max_digits=12,
- decimal_places=settings.DEFAULT_DECIMAL_PLACES)
+ decimal_places=settings.DEFAULT_DECIMAL_PLACES,
+ verbose_name=pgettext_lazy('Product list sorting option', 'price'))
available_on = models.DateField(blank=True, null=True)
is_published = models.BooleanField(default=True)
attributes = HStoreField(default={}, blank=True)
diff --git a/templates/product/_filters.html b/templates/product/_filters.html
index 23fff12c2b..acbf775dfc 100644
--- a/templates/product/_filters.html
+++ b/templates/product/_filters.html
@@ -63,11 +63,11 @@
value="{% if field.value.1 %}{{ field.value.1 }}{% endif %}" type="number" min="0"
class="form-control d-inline" placeholder="{% trans 'to' context 'Product price filter' %}"/>
</div>
- <button class="btn primary" type="submit">{% trans 'Update' context 'Product price filter' %}</button>
</div>
</div>
{% endif %}
{% endfor %}
+ <button class="btn primary" type="submit">{% trans 'Update' context 'Product price filter' %}</button>
</form>
</div>
</div>