WEB Help make set minimum character for OSCommerce search, example set for 4 character

Discussion in 'OT Technology' started by basketmen, Jul 11, 2009.

  1. basketmen

    basketmen New Member

    Jan 31, 2007
    Likes Received:
    Hi guys, below is default OSCommerce complete search file, the file name is advanced_search_result.php

    oscommerce is very free famous script, but..

    ironically this file is searching all words that typed by user, even just a single word like "A" or "An"
    it is searching in mysql, so its make very very high load for the server, imagine its need to search for all words that contain "A", how if you have 100.000 products/items in your site :rolleyes:

    maybe the best option to reduce the load server is to set the minimum character to search, example to search only minimum 4 or more character, there is no setting for doing this in oscommerce setting, so its need to change some code in a file, i had asking this in oscommerce forum, but they cant do this

    i think the part need to edit is in bold below, please help guys to make it only search 4 or more character words

    here is advanced_search_result.php file content :

    I had try change to red below, but no one working




Share This Page