Not so good. I just tried this and got another mess - all of the (sub)categories are properly sorted in alphabetical order, but I can’t move any of them up/down when mark position eg. 1, 2, 3, etc. Some additional tweak needed.
Hi! I’m using CS-Cart 2.0.15, and although in the past I was able to have my Top Menu Catalog Categories and Sub-Categories sorted alphabetically, I can’t remember how I did it, and some update screwed it up again. Your fix here made my left side-menu categories and sub-cats sort alphabetically again, but not my Top Menu ones. Any idea what file I need to edit to have those sort alphabetically again? Thank you!
Susie
[quote name=‘The Tool’]Here is how to have your categories sorted alphabetically in CS 2.0.
Just a simple change in [COLOR=“Blue”]BLUE[/COLOR] in: /core/fn.catalog.php
// --------------------------------------
// Gets all visible nodes of the category, start from the root
// fn_get_categories(0, true, 234)
I didn’t know I was allowed to include a link. See www.esbuys.com. You’ll see “Shop our Catalog” on the left will display all cats & sub-cats alphabetically, but the dropdown Catalog on the Top Menu doesn’t. Look under “Electronics,” and you’ll see “Cordless Telephones” sitting at the bottom of the list.
I know, but I add new categories fairly often when I add new products with my .csv file that I upload. So if I have to go that way, I have to log-into the Admin part and manually change all of the positions to say 0, which is time-consuming, and sometimes I forget to do it. I know for sure there is a way to have them sort by name instead of position. The fix above already shows this is possible for the side menu, but I can’t remember where to put it for the Top Meno Catalog.
[quote name=‘brandonvd’]If you change the position of your categories to “0”, the cart will automatically sort alphabetically.
Is there some way that I can make all categories and sub-categories that I import with my .csv file automatically give everything a default “Position” of zero? Same question for how do I do this for my “Feature” I have created called, “Manufacturer?”
Susie, I really don’t know how the drop down is set-up in the top menu. All mine does is go to a page with a list of all of the categories when clicked. It looks like it is still sorting alphabetically except for that particular one. That’s strange.
All (or most) of my other categories are ones where I manually changed their positions to 0. I just created the Cordless Phones sub-category and a few others the other day, and I’d rather not have to manually change their positions to 0 like I’ve been doing for some time now since some update awhile back messed up the alphabetizing. I was just hoping someone knew how to get the Top Menu Catalog to be listed by Name instead of by Position…