Guest janpugs Posted September 6, 2006 Share Posted September 6, 2006 Is there a way for me to resort the catagory order? I just added another Catagory and it is at the bottom, I would like it to be the second one listed . how do I do that without deleting all the catagories and and starting over. Quote Link to comment Share on other sites More sharing options...
Guest peppy Posted September 7, 2006 Share Posted September 7, 2006 there is a mod for that at cubecart.org :) Quote Link to comment Share on other sites More sharing options...
Guest vrakas Posted September 7, 2006 Share Posted September 7, 2006 If you need them Alphabeticaly then: Go to includes/boxes/categories.inc.php Change the line: $results = $db->select("SELECT cat_name, cat_id FROM ".$glob['dbprefix']."CubeCart_category WHERE cat_father_id = 0"); to $results = $db->select("SELECT cat_name, cat_id FROM ".$glob['dbprefix']."CubeCart_category WHERE cat_father_id = 0 ORDER BY cat_name ASC"); If not then do as peppy suggested :) Quote Link to comment Share on other sites More sharing options...
Guest thomasvr Posted July 18, 2007 Share Posted July 18, 2007 If you need them Alphabeticaly then: Go to includes/boxes/categories.inc.php Change the line: $results = $db->select("SELECT cat_name, cat_id FROM ".$glob['dbprefix']."CubeCart_category WHERE cat_father_id = 0"); to $results = $db->select("SELECT cat_name, cat_id FROM ".$glob['dbprefix']."CubeCart_category WHERE cat_father_id = 0 ORDER BY cat_name ASC"); If not then do as peppy suggested BEAUTIFUL. Thank you! :innocent: Quote Link to comment Share on other sites More sharing options...
Guest That Graphics Guy Posted July 22, 2007 Share Posted July 22, 2007 If you need them Alphabeticaly then: Go to includes/boxes/categories.inc.php Change the line: $results = $db->select("SELECT cat_name, cat_id FROM ".$glob['dbprefix']."CubeCart_category WHERE cat_father_id = 0"); to $results = $db->select("SELECT cat_name, cat_id FROM ".$glob['dbprefix']."CubeCart_category WHERE cat_father_id = 0 ORDER BY cat_name ASC"); If not then do as peppy suggested BEAUTIFUL. Thank you! Indeed.. I was looking for this too. Thanks ~ Dave Quote Link to comment Share on other sites More sharing options...
Guest Tammy Hargreaves Posted September 9, 2007 Share Posted September 9, 2007 If you need them Alphabeticaly then: Go to includes/boxes/categories.inc.php Change the line: $results = $db->select("SELECT cat_name, cat_id FROM ".$glob['dbprefix']."CubeCart_category WHERE cat_father_id = 0"); to $results = $db->select("SELECT cat_name, cat_id FROM ".$glob['dbprefix']."CubeCart_category WHERE cat_father_id = 0 ORDER BY cat_name ASC"); If not then do as peppy suggested Hi, Im looking to do this aswell, but i dont know how to get to Go to includes/boxes/categories.inc.php Im new to all this Thanks Alot Tam www.replicabagsuk.com Quote Link to comment Share on other sites More sharing options...
Guest Posted September 9, 2007 Share Posted September 9, 2007 You can also do this; Make category images and name than in a specific order, like "1-category.gif, 2-category.gif,....." Then add the specific image to each category. Now open the categories.inc.php file, look for $results = $db->select("SELECT cat_name, cat_id FROM ".$glob['dbprefix']."CubeCart_category WHERE cat_father_id = 0"); And replace with; $results = $db->select("SELECT cat_name, cat_id FROM ".$glob['dbprefix']."CubeCart_category WHERE cat_father_id = 0 ORDER BY cat_image ASC"); So, basically your ordering your categories by renaming your unique category image files. Sounds crazy, but it work on our www.thetreasurebasket.com site perfectly. :sourcerer: Quote Link to comment Share on other sites More sharing options...
Guest Klutzys Posted February 29, 2008 Share Posted February 29, 2008 If you need them Alphabeticaly then: Go to includes/boxes/categories.inc.php Change the line: $results = $db->select("SELECT cat_name, cat_id FROM ".$glob['dbprefix']."CubeCart_category WHERE cat_father_id = 0"); to $results = $db->select("SELECT cat_name, cat_id FROM ".$glob['dbprefix']."CubeCart_category WHERE cat_father_id = 0 ORDER BY cat_name ASC"); If not then do as peppy suggested I did this and it is NOT working, see below. I don't see any errors. Please advise!! Tammy } // query database $results = $db->select("SELECT cat_name, cat_id FROM ".$glob['dbprefix']."CubeCart_category WHERE cat_father_id = 0 order by cat_name ASC"); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.