Search by SKU with white space
-
Hi,
I have a client that has uploaded their products with an SKU in the format of “1234 5678”. When we search by SKU, it will not return any results, I presume because of the whitespace. Changing an SKU to 1234-5678 will return a result. The client does not wish to change their SKU format, as it is used in catelogs etc. What code do I need to change in order for search by SKU with white space to work?
thanks,
Joe
Hi,
Sorry, but we are not able to change this functionality and SKU have to be without white spaces.
Kind Regards
But where does the functionality come from? WooCommerce? Surely there has to be a fix for this, we can’t be the first company with SKU including white space
Sorry, but there is no workaround for this. SKU search works with one word only. SKU with spaces is considered as multiple words and it doesn’t work as expected.