HotcakesCommerce / hotcakes-commerce-core

The core of the e-commerce part of the overall solution. This is an ecommerce shopping cart solution built on top of the DNN (DotNetNuke) CMS. Anyone can do commerce online now!
https://mmmcommerce.com
MIT License
69 stars 55 forks source link

SI: Category Viewer default sort (Manual) is not sorted correctly #313

Closed WillStrohl closed 3 years ago

WillStrohl commented 3 years ago

Describe the bug

When implementing the drilldown view (Amazon-style sorting), the default sort is the manual sort option in the respective category settings. However, when the page loads, the manual sort is not sorted in the same order as in the category settings.

Software Versions

To Reproduce

Steps to reproduce the behavior:

  1. Install and do minimal setup for DNN & Hotcakes Commerce.
  2. Add sample projects and configure the catalog to properly use the drilldown view.
  3. In the category settings, manually sort the products in the category and ensure "Manual" is the default sort setting.
  4. View the category in the store by simply navigating to it.

Expected behavior

There are no errors and the sort is the same order as seen in the category's settings.

Actual behavior

There are no errors, but the products appear to be sorted randomly.

WillStrohl commented 3 years ago

As it turns out, a first load of the drilldown view would always be CategorySort.None instead of whatever was set in the category settings.