New Zenner
- Join Date:
- Jan 2008
- Posts:
- 5
- Plugin Contributions:
- 0
[Not a bug] Admin orders product name search is missing wildcard
OK, maybe not a bug as such, but probably not the intent ?
Seen in 1.3.8 and still in 1.3.9d.
./admin/orders.php
line 716 (in 1.3.9d):
$search = " and (op.products_model like '%" . $keywords . "%' or op.products_name like '" . $keywords . "%')";
does not allow a search match in all parts of product name as leading wildcard is missing on keyword. Can be solved by adding in % as:
$search = " and (op.products_model like '%" . $keywords . "%' or op.products_name like '%" . $keywords . "%')";
Note: For 1.3.8, then you need to of applied bugfix http://www.zen-cart.com/forum/showpost.php?p=518457&postcount=18 for the 'Search by Product Name' field to work.
:smile: