Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Search Plurals


d4funky1

Recommended Posts

Posted

Hi,

 

When i use the quick find box on my site for any item ending in S (a plural) i always received the advanced search box with the:

 

"At least one of the fields in the search form must be entered" warning above.

 

If i remove the S it will find the product???

 

Any ideas as to why this is happening?

 

Many Thanks

D4

  • 4 weeks later...
Posted

please take a look at:

 

www.fancydressretail.co.uk

 

use the quick find box to search for BOOTS and then again to search for BOOT

 

any ideas?

 

thanks

D4

  • 3 months later...
Posted
please take a look at:

 

www.fancydressretail.co.uk

 

use the quick find box to search for BOOTS and then again to search for BOOT

 

any ideas?

 

thanks

D4

Same problem as your boot and boots....need a filter for the s

Posted
Same problem as your boot and boots....need a filter for the s

 

I found most of this on another website.....

 

on advance_search_result locate

" if (isset($HTTP_GET_VARS['keywords'])) {"

 

and replace that section with

 

if (isset($HTTP_GET_VARS['keywords'])) {

$keywords = $HTTP_GET_VARS['keywords'];

$stringlength = strlen($keywords);

if(substr($keywords, $stringlength-1, $stringlength) == 's') $keywords = substr($keywords, 0, $stringlength-1);

}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...