Results 1 to 7 of 7
  1. #1
    Join Date
    May 2005
    Posts
    63
    Plugin Contributions
    0

    Default Categories in Admin

    I would like to change the sort order of the categories in the admin. Right now they show by "sort" order. I would like to have them show by the name of the category, not the sort order that will show on the website,

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    18,049
    Plugin Contributions
    1

    Default Re: Categories in Admin

    If I understand the question, Admin - Configuration - Layout Settings - Categories/Products Display Sort Order

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    20,981
    Plugin Contributions
    25

    Default Re: Categories in Admin

    That sets the front end sort order, not the admin page sort order.
    You can set the current display order in Catalog > Categories/Products > Categories/Product Display Order:[]
    This will not be permanent, though; you will need to reset it each time you log in.

  4. #4
    Join Date
    May 2005
    Posts
    63
    Plugin Contributions
    0

    Default Re: Categories in Admin

    Thank you. Is there a way to hard code it so it's always set that way?

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    20,981
    Plugin Contributions
    25

    Default Re: Categories in Admin

    I presume the default value is set in the database, so you would need to find and alter that. I wouldn't try it unless you are comfortable with databases, and then only after making a full backup.

    It might be in the file that handles that page... couldn't hurt to look around.

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    20,981
    Plugin Contributions
    25

    Default Re: Categories in Admin

    /your_admin/categories.php handles that page, and it has code that sees if there is a session setting for categories sort order, and if not, uses the default constant value, CATEGORIES_PRODUCTS_SORT_ORDER. There is no other file in the fileset that contains that exact string, so it must be set in the db.

    You could probably alter the value the file uses. First you would have to find out exactly what the alternate value is, then replace the constant in this statement with that value:
    PHP Code:
      if (!isset($_SESSION['categories_products_sort_order'])) {
        
    $_SESSION['categories_products_sort_order'] = CATEGORIES_PRODUCTS_SORT_ORDER;
      } 

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    20,981
    Plugin Contributions
    25

    Default Re: Categories in Admin

    My reading of the file is that the default value is 0 and the "sort by categories name" value is 1. I can't take more time on it now to confirm this.

 

 

Similar Threads

  1. Categories in CPanel vs Admin
    By jbisson24 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 12 Oct 2010, 03:12 AM
  2. Categories not listing in admin > catalog > categories section
    By kaleco in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 13 Aug 2009, 06:38 PM
  3. admin categories error
    By sheba10 in forum General Questions
    Replies: 2
    Last Post: 19 Dec 2007, 01:30 AM
  4. Admin categories search
    By hondauser85 in forum General Questions
    Replies: 7
    Last Post: 7 Jan 2007, 06:18 PM

Bookmarks

Posting Permissions

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