WooCommerce-POS icon indicating copy to clipboard operation
WooCommerce-POS copied to clipboard

Question: product search without diacritic

Open ToanVenota opened this issue 8 years ago • 2 comments

Hi, Is there a way to be able to search product without diacritics? For now if product if Banána, searching Banana will found nothing.

Thanks.

ToanVenota avatar Feb 03 '17 15:02 ToanVenota

Hi,

as far as I know the behaviour you are used to with the WC Admin search won't work in the POS because the search is performed against the local (indexedDB) database that the plugin uses to speed up searches and it has limitations that prevent this.

Mysql can do this because of its support of characters set and collations:

https://dev.mysql.com/doc/refman/5.7/en/charset-general.html

thomasmery avatar Feb 06 '17 16:02 thomasmery

This could be achieved by combining a library such as node-diacritic to the JSON-query library.

It's not something I can look at right now for 0.5.0, but I will do some testing for 0.5.x.

kilbot avatar Feb 07 '17 05:02 kilbot