VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: cyberx on January 27, 2012, 14:54:11 PM

Title: VM2 search options
Post by: cyberx on January 27, 2012, 14:54:11 PM

if i search in the search modul, the results page i can see the categories and after the results.

how can i turn off the categories in the result page?
i don't want see the categories just the results

thx
Title: Re: VM2 search options
Post by: cyberx on February 10, 2012, 11:56:25 AM
does nobody know a solution to this?

help me pls!
Title: Re: VM2 search options
Post by: Biggreuda on February 11, 2012, 15:01:54 PM
This was bothering us, too.
All we did, was to put the display of the categories in our default category-template inside an if-statement, which checked if an actual search was committed.
For example:

<?php if ($this->search ==null ) { ?>
[The usual stuff to display the categories]
<?php ?>

The file is located in /components/com_virtuemart/views/category/tmpl/default.php, if no override is set.