diefenbach / django-lfs

An online-shop based on Django
http://www.getlfs.com
BSD 3-Clause "New" or "Revised" License
622 stars 222 forks source link

Default product sorting key not respected on product page #176

Closed mickname closed 9 years ago

mickname commented 9 years ago

By default products can be sorted by name or price and the default value is set by the setting LFS_PRODUCTS_SORTING. This only works on the category view, not on product pages which use the _productnavigation template tag.

https://github.com/diefenbach/django-lfs/blob/ff822090eb61b916d0a9031850a27b1d8637ec0a/lfs/core/templatetags/lfs_tags.py#L205

The sorting key is hard coded to _effectiveprice.