Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
charleshays
charleshays
Mod: Alphabatize Manufacturer Pull Down in Product Edit
 
Description: When working with products in the admin section, the manufacturer list is sorted by id, which can make it difficult to find the appropriate manufacturer when you have lots of them. This mod will list all the manufacturer's in the list alphabeticaly.
 
File: admin/admin_product.php
Around line: 127
change:
$manufacturers = get_db_values("SELECT manufacturer_id,manufacturer_name FROM " . $table_prefix . "manufacturers", array(array("", "")));
 
to:
 
$manufacturers = get_db_values("SELECT manufacturer_id,manufacturer_name FROM " . $table_prefix . "manufacturers ORDER BY manufacturer_name", array(array("", "")) );