I have a specific requirement to replace the word "cups" with "cup" in the search input. In other words if the user enters the word "cups" I want it to be replaced automatically by the search with "cup" so that the plural isn't searched.
I don't want to exclude plurals.
I think i Need to add
- Code: Select all
$product_keyword = str_replace('cups','cup', $product_keyword);
into the module somewhere but I cannot seem to work out where.
I need the user inputted search term to work on ajax search and on enter press.
Can you point me in the right direction please.
Thanks
