Author Topic: Search result with out catalog  (Read 4088 times)


d0ublezer0

  • Jr. Member
  • **
  • Posts: 192
Re: Search result with out catalog
« Reply #1 on: February 25, 2012, 11:08:59 am »
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:
Code: [Select]
    /* Show child categories */
    if ( VmConfig::get('showCategory',1)) {
to:
Code: [Select]
    /* Show child categories */
    if ( VmConfig::get('showCategory',1)&& empty($this->keyword) ) {

stslit

  • Beginner
  • *
  • Posts: 18
Re: Search result with out catalog
« Reply #2 on: February 26, 2012, 20:29:17 pm »
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

  • Jr. Member
  • **
  • Posts: 192
Re: Search result with out catalog
« Reply #3 on: February 27, 2012, 16:33:08 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:
Code: [Select]
      <?php //echo $this->searchcustom ?>
                <?php //echo $this->searchcustomvalues ?>
           
or simply delete this lines

stslit

  • Beginner
  • *
  • Posts: 18
Re: Search result with out catalog
« Reply #4 on: March 03, 2012, 16:38:53 pm »
d0ublezer0 double thanks  ;D ;D ;D