[Note: remember to include site URL, ZC version, list of plugins, PHP version, etc ... read the Posting Tips shown above for information to include in your post here. And, remove this comment before actually posting!]
Website is http://beyondherbs.com. PHP 5.6. ZC 1.55 f. Alto theme.
I modified the advanced search results header.php as mentioned here (https://www.zen-cart.com/showthread....arch-results#6) which has successfully improved my search results by way of utilizing the MySQL built in full text searching capabilities. The change is quite preferred to the default search results.
However, because this modification utilizes MySQL, it is not allowing searches that use an apostrophe or quotation mark. This is problematic, and can be confusing to customers.
Is it possible to add a line of code to /includes/modules/pages/advanced_search_result/header.php that will remove or format the " or ', so that the search may work, even when these characters are entered? I found two suggestions, but am unsure where they go.
Suggestion 1 recommends using sanitize_text_field: https://wordpress.stackexchange.com/...ith-apostrophe
Suggestion 2 recommends using a line to replace the ' or " with a /, so that the code will be removed. I am unsure if this would work while maintaining search integrity, but I am down to give it a shot.
-
Thank you for your assistance, ZC team and community!
Bookmarks