Jump to content

Site docs order


Guest
 Share

Recommended Posts

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.

Link to comment
Share on other sites

Actually that is true of the categories, Robert, but not the doc id's :D 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");

Link to comment
Share on other sites

Actually that is true of the categories, Robert, but not the doc id's :D 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:

Link to comment
Share on other sites

  • 1 month later...

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

Link to comment
Share on other sites

  • 3 months later...

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!!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...