Page 1 of 1
OC 1.5.5,1 Admin Categories Pagination
Posted: Thu Nov 21, 2013 2:28 pm
by paisleybay
I have 168 categories/subcategories & have chosen in System > Settings > Option: 20 items per page for Admin. So there ought to be 9 pages, with page 1 from category #1 to #20, page 2 from category #21 to #40 ... and so on. I find 9 pages, but funnily every page has all the 168 items

Has anybody experienced this in OC 1.5.5.1? Any fixes? Thanks.
Re: OC 1.5.5,1 Admin Categories Pagination
Posted: Thu Nov 21, 2013 2:46 pm
by inactiveaccount9912
In admin/model/catalog/category.php does your getcategories function look like below?:
Code: Select all
public function getCategories($data) {
$sql = "SELECT cp.category_id AS category_id, GROUP_CONCAT(cd1.name ORDER BY cp.level SEPARATOR ' > ') AS name, c.parent_id, c.sort_order FROM " . DB_PREFIX . "category_path cp LEFT JOIN " . DB_PREFIX . "category c ON (cp.path_id = c.category_id) LEFT JOIN " . DB_PREFIX . "category_description cd1 ON (c.category_id = cd1.category_id) LEFT JOIN " . DB_PREFIX . "category_description cd2 ON (cp.category_id = cd2.category_id) WHERE cd1.language_id = '" . (int)$this->config->get('config_language_id') . "' AND cd2.language_id = '" . (int)$this->config->get('config_language_id') . "'";
if (!empty($data['filter_name'])) {
$sql .= " AND cd2.name LIKE '" . $this->db->escape($data['filter_name']) . "%'";
}
$sql .= " GROUP BY cp.category_id ORDER BY name";
if (isset($data['start']) || isset($data['limit'])) {
if ($data['start'] < 0) {
$data['start'] = 0;
}
if ($data['limit'] < 1) {
$data['limit'] = 20;
}
$sql .= " LIMIT " . (int)$data['start'] . "," . (int)$data['limit'];
}
$query = $this->db->query($sql);
return $query->rows;
}
Re: OC 1.5.5,1 Admin Categories Pagination
Posted: Sat Nov 23, 2013 12:58 am
by paisleybay
Hi florisinth
Absolutely same code. Thanks.
Re: OC 1.5.5,1 Admin Categories Pagination
Posted: Sat Nov 23, 2013 1:13 am
by cwswebdesign
Are you running any mods that might be effecting this?
DL
Re: OC 1.5.5,1 Admin Categories Pagination
Posted: Sat Nov 23, 2013 8:08 pm
by paisleybay
Thanks. I use a number of extensions. Last installed: Ultimate SEO Package. I uninstalled, cleared System & VQMod and browser Cache and retried. The problem did not go away.
Re: OC 1.5.5,1 Admin Categories Pagination
Posted: Sat Nov 23, 2013 10:37 pm
by cwswebdesign
You might need to list out the ones that you're using. Are there any errors in the vqmod manager? If you want, you can email
support@cwswebsitedesign.com and we can take a look at that for you.
DL