![]() |
Sort Order for menu. please help
Recently I've found mod in this forum for showing categories and subcategories sorted - /customer/categories.tpl
works fine but sorting order for categories doesn't match the one in admin. anyone can suggest why this happens? Code:
{* $Id: categories.tpl,v 1.23 2004/06/24 09:53:29 max Exp $ *} |
|
Quote:
this topic is for old x-cart and the posts are also old. I need the info for 4.0.17 please |
It still applies.
|
Quote:
There is no code like that. please check and you will ensure. |
Of course it is not exact, I mean the concept still applies. Look at the code in include/categories.php and you will see the orderby option.
|
Quote:
As I asked I'm newbie, I don't know how to edit ;) that's why I ask for help please. |
Category Sort Order
Why do X-CART do this ?
The Answer is: I do not know, perhaps a bug. I have not looked at issues relating to making this change, the the reason the categories are in alphabetical order or the order that you enetred them into the admin section is that they are doing a usort on the category path. Again, I am just quickly looking at a site for a client and found this thread and issue as my client has the same problem. For anybody with this problem, try and comment out the following line from your /include/categories.php in 4.0.17 Change: usort($all_categories, "func_categories_sort"); To: //usort($all_categories, "func_categories_sort"); Somebody else who has looked at this, may explain why xcart is doing this, but I have no time, as we are very busy at present. X-CART may want to look at this, as it seems that the order_by column is useless. |
I have looked through the posts and I am still having trouble making just the subcategories be listed alphabetically.
I would really appreciate if someone could suggest what must be done to make the subcategories list alphabetically. |
All times are GMT -8. The time now is 12:16 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.