Post by sprocker » Sun Jul 17, 2011 4:22 pm

I have added the scrolling Manufacturers to my site, but would prefer to list these in "sort_order" rathern than by name - where do I change this?

Thanks

New member

Posts

Joined
Thu Jun 09, 2011 11:29 pm

Post by sprocker » Thu Jul 28, 2011 10:01 pm

Found it!

The file is

catalog\model\catalog\manuracturer.php

Change

$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "manufacturer m LEFT JOIN " . DB_PREFIX . "manufacturer_to_store m2s ON (m.manufacturer_id = m2s.manufacturer_id) WHERE m2s.store_id = '" . (int)$this->config->get('config_store_id') . "' ORDER BY name");

to

$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "manufacturer m LEFT JOIN " . DB_PREFIX . "manufacturer_to_store m2s ON (m.manufacturer_id = m2s.manufacturer_id) WHERE m2s.store_id = '" . (int)$this->config->get('config_store_id') . "' ORDER BY sort_order");

New member

Posts

Joined
Thu Jun 09, 2011 11:29 pm
Who is online

Users browsing this forum: No registered users and 72 guests