From 9b368887a3bb52a5284e1fc462f7128c5440c230 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 1 Feb 2016 01:40:19 +0100 Subject: [PATCH] fix product order --- app/diggersdigest/settings.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/diggersdigest/settings.py b/app/diggersdigest/settings.py index f875cf0..322c725 100644 --- a/app/diggersdigest/settings.py +++ b/app/diggersdigest/settings.py @@ -171,6 +171,11 @@ SHOP_USE_VARIATIONS = False SHOP_USE_RATINGS = False +SHOP_PRODUCT_SORT_OPTIONS = ( + ('Recently added', '-publish_date'), + ('Least expensive', 'unit_price'), + ('Most expensive', '-unit_price')) + # Add Migration Module path see : https://github.com/stephenmcd/mezzanine/blob/master/docs/model-customization.rst#field-injection-caveats MIGRATION_MODULES = { "shop": "diggersdigest.migrations.shop", @@ -365,7 +370,7 @@ INSTALLED_APPS = ( "mezzanine.galleries", "mezzanine.twitter", "mezzanine.accounts", - "mezzanine.mobile", +# "mezzanine.mobile", "payments.multipayments", 'paypal.standard.ipn', "records", -- 2.39.5