Jump to content

Catagory order


Guest janpugs

Recommended Posts

Guest janpugs

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.

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

  • 10 months later...
Guest thomasvr

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:

Link to comment
Share on other sites

Guest That Graphics Guy

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 :D

~ Dave

Link to comment
Share on other sites

  • 1 month later...
Guest Tammy Hargreaves

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 :sourcerer:

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

Link to comment
Share on other sites

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:

Link to comment
Share on other sites

  • 5 months later...
Guest Klutzys

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");

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.

×
×
  • Create New...