News:

Looking for documentation? Take a look on our wiki

Main Menu

Zero '0' at the end of VM2 product search input box

Started by Yellow Cherry, September 14, 2012, 11:58:40 AM

Previous topic - Next topic

Yellow Cherry

I have a site in development here: http://79.170.40.242/britishcurlingsupplies.co.uk/

Joomla 2.5.6
VM 2.0.10

Using the Product Search module

A random zero '0' appears at the button position although I have told the module not to show a button - settings in screen shot attached

Any ideas on how to get rid of it would be very much appreciated

Thanks

[attachment cleanup by admin]
Internet Marketing // Website Development

Giannis86

Same problem here on J2.5.7/V2.0.10

I am not having this on another site which is almost the same but V2.0.6 instead

http://www.stunning-corals.nl/webshop/index.php/webshop

jesperkronholm

Hi!

I had the exact same problem and solved it by doing the following in the file /modules/mod_virtuemart_search/tmpl/deaufult.php.
In all the 'cases' (begining on line 16) I added this if statement for "$button" :

if ($button == '0') {
    $output = $output;
}

For example case 'right' was before:

case 'right' :
    $output = $output.$button;
break;

And I changed it to:

case 'right' :
    if ($button == '0') {
        $output = $output;
    }
    else $output = $output.$button;
break;

Now I'm no php expert but this seems to have solved it for me. Maybe somenone else knows WHY $button outputs '0' when your settings says "Search button = NO".

Yellow Cherry

Internet Marketing // Website Development