Forum Support

Shape 5
March 28, 2024, 06:33:54 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Alphabetical Categories  (Read 869 times)
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« on: October 14, 2008, 12:30:54 PM »

By default Virtuemart will sort your categories by the order they appear in the backend of Virtuemart. However, with this hack you can change that so they will automatically show alphabetically. This can be extremely useful for your clients to find their category much faster.

Note - This is a hack to the core files of Virtuemart and will over-write your ability to manually change the order of categories in the backend of Virtuemart.
Note - This is not included in our site shapers.

Edit the following file:

administrator/components/com_virtuemart/classes/ps_product_category.php

Open the file in a text editor and do a find replace for:

$q .= "ORDER BY #__{vm}_category.list_order, #__{vm}_category.category_name ASC";

and replace it with:

$q .= "ORDER BY #__{vm}_category.category_name ASC";

Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.