Post by ShaunG » Wed Jun 13, 2012 1:04 am

We just upgraded from 1.4.8 to 1.5.2.1 and now we can't filter by last name in the admin. Is there a bug fix for this?

New member

Posts

Joined
Sat May 08, 2010 1:51 am

Post by Qphoria » Wed Jun 13, 2012 1:09 am

The fix
1. EDIT: admin/model/sale/customer.php

2. FIND TWICE:

Code: Select all

LIKE '" . $this->db->escape(utf8_strtolower($data['filter_name']))
3. REPLACE BOTH WITH:

Code: Select all

LIKE '%" . $this->db->escape(utf8_strtolower($data['filter_name']))
and in the order page:

4. EDIT: admin/model/sale/order.php

5. FIND:

Code: Select all

LIKE '" . $this->db->escape(utf8_strtolower($data['filter_customer']))
6. REPLACE WITH:

Code: Select all

LIKE '%" . $this->db->escape(utf8_strtolower($data['filter_customer']))
Both fixed in the latest svn

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 8 guests