News:

Looking for documentation? Take a look on our wiki

Main Menu

Search module and category filter

Started by PabloArias, March 26, 2013, 16:40:37 PM

Previous topic - Next topic

PabloArias

I'm using the Virtuemart search module configured with NO category filter but when I look for a product inside a category, search results are only from the current category I'm browsing.

I'm using Joomla 2.5.9, Virtuemart 2.0.20b and PHP version 5.3.6-13ubuntu3.2. I've tried with Beez 5 template and same result.

Thank you and best regards!
Pablo Arias
www.pabloarias.eu

PRO

what version of the AIO component are you using?

PabloArias

I'm using AIO component version 2.0.20b.

Thank you!
Pablo Arias
www.pabloarias.eu

PRO

when you examine the code

in the form
is it adding the category id?

<input type hidden> 

PabloArias

This is the form declaration in default.php file (in modules/mod_virtuemart_search/tmpl directory):

<form action="<?php echo JRoute::_('index.php?option=com_virtuemart&view=category&search=true&limitstart=0&virtuemart_category_id='.$category_id ); ?>" method="get">

Thank you and best regards!
Pablo Arias
www.pabloarias.eu

PRO

when you view the source of the webpage

PabloArias

When I view the source of the webpage the form has only this action: "component/virtuemart/search".

Thank you
Pablo Arias
www.pabloarias.eu

PRO

thats all it has?

Mine has

<input type="hidden" name="option" value="com_virtuemart" />
      <input type="hidden" name="view" value="category" />
</form>



PabloArias

Mine has:

<form method="get" action="/component/virtuemart/search">
  <div class="searchflush">
    <input type="text" onfocus="if(this.value=='Buscar') this.value='';" onblur="if(this.value=='') this.value='Buscar';" value="Buscar" size="20" class="inputboxflush" alt="Buscar" maxlength="20" id="mod_virtuemart_search" name="keyword" style="height:16px;vertical-align :middle;">
  </div>
  <input type="hidden" value="0" name="limitstart">
  <input type="hidden" value="com_virtuemart" name="option">
  <input type="hidden" value="category" name="view">
</form>

Thank you
Pablo Arias
www.pabloarias.eu

PRO


PabloArias

Pablo Arias
www.pabloarias.eu

PRO

have you tested this without sef enabled?

do you have joomla cache turned on?

if so, have you tested without it?

PabloArias

Hi again:

I've tested with SEF and cache disabled.

Thanks again and best regards!
Pablo Arias
www.pabloarias.eu

PRO


rjcroasdale

hi PRO :)

Also having issues with Category search filter - finding lots of threads on this, but no solutions for me as yet.

Almost works, but initial search in a category shows only results in that category, on refresh it shows results in all categories; eg url
index.php?keyword=9&limitstart=0&option=com_virtuemart&view=category&virtuemart_category_id=0

I have tried this on two servers now; and various "solutions" from multiple threads.

Thanks for reading