Post by rikmg67 » Wed Aug 29, 2018 5:54 pm

I have a client who is wanting the product search in the admin area to ignore the fact that there are special characters in the product names.

For example, they have a lot of products listed with the word “kings” or the word “king’s” with an apostrophe - both used correctly grammatically depending on the product.

What they want to be able to do is search for “kings” on the admin area and all products called “kings” and “king’s” appear - rather than just “kings” as it does by default.

They have the same problem with “remy” and “r.e.m.y” where, when searching for “remy” the search needs to ignore the fact that there are “.” In the name.

Opencart Version 2.3.0.2

Any help is greatly appreciated!

Newbie

Posts

Joined
Thu Nov 29, 2012 12:44 am

User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by thekrotek » Wed Aug 29, 2018 7:00 pm

If you know sone coding you can simply change the query a bit. Particularly you need to replace LIKE with REGEX and strip all characters from keyword using simple regular expression.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: No registered users and 35 guests