Post by JNeuhoff » Sat Jan 26, 2008 2:33 am

Sub-Categories should always be listed in the specified sort_order first.

I changed the code in file catalog/controller/category.php in method index as follows on my server:

Code: Select all

.....
$results = $database->getRows("select * from category c left join category_description cd on (c.category_id = cd.category_id) left join image i on (c.image_id = i.image_id) where c.parent_id = '" . (int)(!$request->get('path') ? '0' : (int)end(explode('_', $request->get('path')))) . "' and cd.language_id = '" . (int)$language->getId() . "' ORDER BY c.sort_order, c.category_id");
.....
Daniel, can you make sure that future releases will honor the sort_order when listing the sub-categories? Thanks.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by bruce » Sat Jan 26, 2008 10:31 am

Hi,

bugs should be logged here http://code.google.com/p/open-cart/issues/list

This one already is  :)

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm

Post by JNeuhoff » Sun Jan 27, 2008 7:38 pm

Thanks, I wasn't aware of it.

I have now posted another bug with a proposed fix on that site.
See http://forum.opencart.com/index.php/topic,872.0.html and
http://code.google.com/p/open-cart/issues/detail?id=24 for more details.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am

Who is online

Users browsing this forum: No registered users and 4 guests