Change the Virtuemart product search minimum characters

To change the minimum characters you want to search for in your VirtueMart store edit the following file

administrator/components/com_virtuemart/classes/ps_main.php

Change around line 1273

if( $strlen > 2 ) {

to

if( $strlen > 1 ) {

for 2 character search

Posted in Joomla and tagged , .

4 Comments

  1. Hello Jeroen,

    If found your solution of:
    if( $strlen > 2 ) {
    to
    if( $strlen > 1 ) {

    Only it doesn’t work.
    In the Virtuemart Search, enter with zero characters Virtuemart let see the whole database. Then I get a timeout error
    Do you have a solution?
    Thanks JOs

Leave a Reply