Category Sort dropdown edits
Category Sort dropdown edits
Hi-- looking to remove some of the options in the cat level sort drop-down, ie: name, manufacturer, feature. Does anyone know how I make these changes? thx
Re: Category Sort dropdown edits
Look at the CategoryGridPage.ascx control you are using on your category page. Open the ASCX file and search for SortResults and you'll see a hardcoded list of options. Just remove the options you don't want. It will look like this:
Code: Select all
<asp:DropDownList ID="SortResults" runat="server" AutoPostBack="true" CssClass="sorting" EnableViewState="false">
<asp:ListItem Text="By Name (A -> Z)" Value="Name ASC"></asp:ListItem>
<asp:ListItem Text="By Name (Z -> A)" Value="Name DESC"></asp:ListItem>
<asp:ListItem Text="Featured" Value="IsFeatured DESC, Name ASC"></asp:ListItem>
<asp:ListItem Text="By Price (Low to High)" Value="Price ASC"></asp:ListItem>
<asp:ListItem Text="By Price (High to Low)" Value="Price DESC"></asp:ListItem>
<asp:ListItem Text="By Manufacturer (A -> Z)" Value="Manufacturer ASC"></asp:ListItem>
<asp:ListItem Text="By Manufacturer (Z -> A)" Value="Manufacturer DESC"></asp:ListItem>
</asp:DropDownList>