Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Nov 2010
    Posts
    68
    Plugin Contributions
    0

    Default Sort Category Box?

    Is there a way to resort the categories so that they display alphabetically in the list in the left box?

    As it stands, if I add a category it always show up at the bottom.

    TIA,

    ---JC

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Sort Category Box?

    By default the Categories sort by sort order, category name ... if you have no sort order than you will get categories name ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Nov 2010
    Posts
    68
    Plugin Contributions
    0

    Default Re: Sort Category Box?

    Quote Originally Posted by Ajeh View Post
    By default the Categories sort by sort order, category name ... if you have no sort order than you will get categories name ...
    That's not what's happening. Is there a place in the Admin to specify the sort of the category box?

    TIA,

    ---JC

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Sort Category Box?

    Quote Originally Posted by suntower View Post
    That's not what's happening. Is there a place in the Admin to specify the sort of the category box?
    Not that I know of. As Ajeh said, if there's no sort order specified, the list is sorted aplhabetically by category name, unless (apperently) you have categories in different product types. It looks like the Music product type categories display first.

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Sort Category Box?

    If you look at the SELECT statements in the class categories_tree, they all use:
    Code:
    order by sort_order, cd.categories_name";
    Unless you are using something else for your categories sidebox, that is the way things are sorted ...

    You could customize that, but if you are not using the categories sort order, and just the categories_name, then it is difficult to say why they do not sort by name for you ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Nov 2010
    Posts
    68
    Plugin Contributions
    0

    Default Re: Sort Category Box?

    Thanks, this gave me the clue.

    I checked the category table in Navicat and the 'sort' column was all Nulls. I set the values to 0 and all is well.

    We moved servers several months ago and did an import/export. Must've happened then and I didn't notice because we haven't changed any categories since then.

    CHEERS!

    ---JC



    Quote Originally Posted by Ajeh View Post
    If you look at the SELECT statements in the class categories_tree, they all use:
    Code:
    order by sort_order, cd.categories_name";
    Unless you are using something else for your categories sidebox, that is the way things are sorted ...

    You could customize that, but if you are not using the categories sort order, and just the categories_name, then it is difficult to say why they do not sort by name for you ...

 

 

Similar Threads

  1. Replies: 8
    Last Post: 13 Feb 2013, 04:06 PM
  2. v151 Product Sort within Category - having problems changing the default sort order
    By Don Wagner in forum Customization from the Admin
    Replies: 4
    Last Post: 21 Oct 2012, 03:03 AM
  3. Sort by box in wrong spot
    By jjrmy1 in forum General Questions
    Replies: 2
    Last Post: 29 Oct 2010, 08:16 PM
  4. 'Sort by' box help needed
    By HandcraftedUK in forum General Questions
    Replies: 4
    Last Post: 14 Dec 2006, 07:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg