| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Sort Order for menu. please help | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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:
__________________
Xcart 4.0.17 GOLD |
|||||||
#2
|
|||||||
|
|||||||
![]()
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() Quote:
this topic is for old x-cart and the posts are also old. I need the info for 4.0.17 please
__________________
Xcart 4.0.17 GOLD |
|||||||
#4
|
|||||||
|
|||||||
![]() It still applies.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() Quote:
There is no code like that. please check and you will ensure.
__________________
Xcart 4.0.17 GOLD |
|||||||
#6
|
|||||||
|
|||||||
![]() 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.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#7
|
|||||||
|
|||||||
![]() Quote:
As I asked I'm newbie, I don't know how to edit ![]() please.
__________________
Xcart 4.0.17 GOLD |
|||||||
#8
|
|||||||
|
|||||||
![]() 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.
__________________
All versions of X-Cart Been in eCommerce 10 years, Coding, PM, SEO, Social. X-Cart 11 years. IT 30+ years. Head of Web Dev for Australia's largest eCommerce 2 years. Attended conferences, Velocity 2009 US, CeBit 2009, MySQL 2010 US, Online Retailer 2010, Web 2.0 2011 US, MySQL 2012 US (Percona). Specialise in High Performance, High Volume, PHP, MySQL, HTML, CSS, JAVASCRIPT, SMARTY, MEMCACHED, APACHE, LIGHTTPD, FREEBSD, LINUX. Email your requests to xcart@gazwebtech.com |
|||||||
#9
|
|||||||
|
|||||||
![]() 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.
__________________
x-cart version 4.0.14 |
|||||||
|
|||
X-Cart forums © 2001-2020
|