Page 1 of 1

Category Sort dropdown edits

Posted: Fri Sep 14, 2012 12:04 pm
by dkeogj
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

Posted: Fri Sep 14, 2012 5:33 pm
by david-ebt
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>