From: Guillaume Pellerin Date: Mon, 1 Feb 2016 00:40:19 +0000 (+0100) Subject: fix product order X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=9b368887a3bb52a5284e1fc462f7128c5440c230;p=diggersdigest.git fix product order --- 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",