Post by paisleybay » Thu Nov 21, 2013 2:28 pm

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.

New member

Posts

Joined
Sat Dec 08, 2012 1:55 am

Post by inactiveaccount9912 » Thu Nov 21, 2013 2:46 pm

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;
	}

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by paisleybay » Sat Nov 23, 2013 12:58 am

Hi florisinth

Absolutely same code. Thanks.

New member

Posts

Joined
Sat Dec 08, 2012 1:55 am

Post by cwswebdesign » Sat Nov 23, 2013 1:13 am

Are you running any mods that might be effecting this?

DL

This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.

Thanks!


User avatar
Active Member

Posts

Joined
Sun Dec 11, 2011 12:26 am
Location - USA

Post by paisleybay » Sat Nov 23, 2013 8:08 pm

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.

New member

Posts

Joined
Sat Dec 08, 2012 1:55 am

Post by cwswebdesign » Sat Nov 23, 2013 10:37 pm

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

This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.

Thanks!


User avatar
Active Member

Posts

Joined
Sun Dec 11, 2011 12:26 am
Location - USA
Who is online

Users browsing this forum: No registered users and 93 guests