News:

Support the VirtueMart project and become a member

Main Menu

Search result with out catalog

Started by stslit, February 24, 2012, 19:57:25 PM

Previous topic - Next topic

d0ublezer0

Copy this file:
components\com_virtuemart\views\category\tmpl\default.php
to
templates\your_template_name\html\com_virtuemart\category\default.php

And change in that file next lines:
    /* Show child categories */
    if ( VmConfig::get('showCategory',1)) {

to:
    /* Show child categories */
    if ( VmConfig::get('showCategory',1)&& empty($this->keyword) ) {

stslit

#2
2d0ublezer0
Great! It's so simple and worked :)

I thinking, this feature should be usefull like chek switch in VM amin panel.

And I thinking, I can mark this post like [solved]

P.S.
May be you know, how to hide at top the page seach result: "Choose product type" with dropbox and button "search in shop" with editbox.

Thank you

P.P.S
One more solution fom SamF http://forum.virtuemart.net/index.php?topic=97300.0

d0ublezer0

Quote from: stslit on February 26, 2012, 20:29:17 PM
2d0ublezer0
P.S.
May be you know, how to hide at top the page seach result: "Choose product type" with dropbox and button "search in shop" with editbox.
in the same file just add a comment before lines:

      <?php //echo $this->searchcustom ?>
                <?php //echo $this->searchcustomvalues ?>
           

or simply delete this lines

stslit