Adding Normal Sort to Sort Dropdown

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
Intelliflex
Lieutenant (LT)
Lieutenant (LT)
Posts: 78
Joined: Tue Feb 17, 2004 7:51 pm

Adding Normal Sort to Sort Dropdown

Post by Intelliflex » Fri Feb 22, 2008 8:15 pm

Good Day All

One disappointing issue we had with the sort feature was that it totally ignored the product sort order set in the Admin. Also, if you highlighted a category in the menu, the subcategories in the content area were not in the order selected in the Admin either.

A very simple fix.

In the CategoryGridPage.ascx code (whichever grid you have chosen), look for a control called

Code: Select all

<asp:DropDownList ID="SortResults" runat="server" AutoPostBack="true" CssClass="sorting" EnableViewState="false">
Add this code to top of the list items:

Code: Select all

<asp:ListItem Text="Normal" Value=""></asp:ListItem>
This will create an sort item in the dropdown called Normal, the value it returns is nothing, and will be the default when the page opens, which will sort in the order that has been selected in the Admin.
Dave

Post Reply