Shape 5

Joomla Templates => Aluma Photography - October - Club => : mikek October 14, 2008, 12:30:54 PM



: Alphabetical Categories
: mikek 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";