Guest Posted February 8, 2007 Share Posted February 8, 2007 Just a quick question (i have done a search), how do I change the order of site documents. Example is: Artist, Contact, Exhibitions (1,4,2) but I want then in order of Artist, Exhibitions, Contact (1,2,4). Ta muchly. Quote Link to comment Share on other sites More sharing options...
Guest Posted February 9, 2007 Share Posted February 9, 2007 There are a few mods available at the cubecart.org site that can help you order the site docs however you'd like. Quote Link to comment Share on other sites More sharing options...
roban Posted February 9, 2007 Share Posted February 9, 2007 Since these are ordered by doc_id in the Cubecart_docs table. I would imagine one could change the id number of each document in the databse.. Quote Link to comment Share on other sites More sharing options...
markscarts Posted February 9, 2007 Share Posted February 9, 2007 Actually that is true of the categories, Robert, but not the doc id's can be cconfusing, I know The site docs by default CubeCart code are listed alphabetically. You want to list them bu doc_id OPEN includes/boxes/siteDocs.inc.php FIND around line 37: $results = $db->select("SELECT doc_id, doc_name FROM ".$glob['dbprefix']."CubeCart_docs ORDER BY doc_name ASC"); CHANGE TO $results = $db->select("SELECT doc_id, doc_name FROM ".$glob['dbprefix']."CubeCart_docs ORDER BY doc_id ASC"); Quote Link to comment Share on other sites More sharing options...
Guest Posted February 9, 2007 Share Posted February 9, 2007 Actually that is true of the categories, Robert, but not the doc id's can be cconfusing, I know The site docs by default CubeCart code are listed alphabetically. You want to list them bu doc_id OPEN includes/boxes/siteDocs.inc.php FIND around line 37: $results = $db->select("SELECT doc_id, doc_name FROM ".$glob['dbprefix']."CubeCart_docs ORDER BY doc_name ASC"); CHANGE TO $results = $db->select("SELECT doc_id, doc_name FROM ".$glob['dbprefix']."CubeCart_docs ORDER BY doc_id ASC"); Great big sloppy kisses to you markscarts!!! Thanks guys. :wacko: Quote Link to comment Share on other sites More sharing options...
Guest Posted March 12, 2007 Share Posted March 12, 2007 hi what about if you need them random or change your ids later...is there a simple way of just using a n arrow button to specify order? i have tried cubecart.org but cant seem to find anything thanks Quote Link to comment Share on other sites More sharing options...
Guest Posted July 1, 2007 Share Posted July 1, 2007 Make the changes to the inc.php file as MarksCarts suggested, but in the MySQL database, open the cubecart_doc folder and remove the AUTOINCREMEMT setting for doc_id. Then rewrite the doc_id numbers to suit your order. Don't skip any numbers!! 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.