You are here:  » Search results drop apostrophe

Active Forum Topics

Search results drop apostrophe

Submitted by Retro135 on Thu, 2019-09-26 19:52 in

Search results drop apostrophes, for example: men's becomes mens and only finds men & mens, but not men's, that are in many product titles. I'm using 15/09A, modified. You may have addressed this awhile back, I'm not sure.

Submitted by support on Fri, 2019-09-27 09:21


The query is normalised (with a number of additional characters permitted by default)and you can add apostrophe to the list - edit search.php and look for the following code at line 6:

  $q = (isset($_GET["q"])?tapestry_normalise($_GET["q"],":\.\/"):"");

...and REPLACE with:

  $q = (isset($_GET["q"])?tapestry_normalise($_GET["q"],":\.\/'"):"");


Submitted by Retro135 on Sat, 2019-09-28 16:49

No joy. Instead of dropping the ', I now receive "No product search results for: Men's"

Submitted by Retro135 on Sat, 2019-09-28 19:32

I should have explained more specifically. The backend search now works with "Men's" when I do a search. It's the site page search results that displays "No product search results for: Men's".

Submitted by support on Mon, 2019-09-30 09:53


Sorry about that - there may be a couple of other considerations on the front end - I know you have been running the script for several years now, please could you email me search.php and also html/searchform.php and I'll check it out further with you...


Submitted by Retro135 on Tue, 2019-10-01 19:44

Your new fixes work! Thank you so much David!