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.
__________________
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
|