Category Sort dropdown edits

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
dkeogj
Ensign (ENS)
Ensign (ENS)
Posts: 3
Joined: Wed May 02, 2012 11:22 am

Category Sort dropdown edits

Post by dkeogj » Fri Sep 14, 2012 12:04 pm

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

User avatar
david-ebt
Captain (CAPT)
Captain (CAPT)
Posts: 253
Joined: Fri Dec 31, 2010 10:12 am

Re: Category Sort dropdown edits

Post by david-ebt » Fri Sep 14, 2012 5:33 pm

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>
David
http://www.ecombuildertoday.com
Enhanced Reporting for AbleCommerce
Image

Post Reply