SMFHacks.com

SMF Store => Support => Topic started by: Shades on September 17, 2021, 08:39:24 pm

Title: Search Word Limit
Post by: Shades on September 17, 2021, 08:39:24 pm
Is there a way to increase the limit on the minimum search field?

I have colors I need to be able to search with only 3 letters like "Red" that it won't allow me to search.

Thanks 8)
Title: Re: Search Word Limit
Post by: SMFHacks on September 17, 2021, 08:41:01 pm
In sources/Store2.php
Find
Code: [Select]
if (strlen($searchfor) <= 3)
fatal_error($txt['store_error_search_small'],false);

Change to
Code: [Select]
if (strlen($searchfor) < 3)
fatal_error($txt['store_error_search_small'],false);