| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
set minimum number of characters in search string. HOW PLS? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
set minimum number of characters in search string. HOW PLS?
By default, in x-cart if you hit 'Submit' in the search field with no search query in the search field, x-cart returns all products listed in the database.
This is not desirable for a number of reasons and I was wondering if you could help me change this to actually set a minimum number of characters required before a search result is returned to the user, thus reducing the number of items displayed. Or if there is a better solution which is implementable could you suggest what one might do to avoid the aforementioned scenario? Thanks a heap
__________________
Best regards, Donavichi. - - - Website Copywriting || Web Design || FAQs || Home & Garden Blog |
|||||||
#2
|
|||||||
|
|||||||
I am also anxious for a solution. The closest I found so far involves adding a validator plugin into smarty.
__________________
X-Cart Gold 4.0.17 [unix] X-Cart Gold 4.0.18 [unix] |
|||||||
#3
|
|||||||
|
|||||||
I was able to find something to prevent the blank searches and minimum characters. Set the var minLength to desired character length.
here is the capture section in search.tpl Code:
__________________
X-Cart Gold 4.0.17 [unix] X-Cart Gold 4.0.18 [unix] |
|||||||
|
|||
X-Cart forums © 2001-2020
|