VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: PabloArias on March 26, 2013, 16:40:37 PM

Title: Search module and category filter
Post by: PabloArias on March 26, 2013, 16:40:37 PM
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!
Title: Re: Search module and category filter
Post by: PRO on March 26, 2013, 16:54:19 PM
what version of the AIO component are you using?
Title: Re: Search module and category filter
Post by: PabloArias on April 02, 2013, 17:06:48 PM
I'm using AIO component version 2.0.20b.

Thank you!
Title: Re: Search module and category filter
Post by: PRO on April 02, 2013, 18:02:27 PM
when you examine the code

in the form
is it adding the category id?

<input type hidden> 
Title: Re: Search module and category filter
Post by: PabloArias on April 03, 2013, 16:35:27 PM
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!
Title: Re: Search module and category filter
Post by: PRO on April 03, 2013, 18:15:01 PM
when you view the source of the webpage
Title: Re: Search module and category filter
Post by: PabloArias on April 04, 2013, 18:06:18 PM
When I view the source of the webpage the form has only this action: "component/virtuemart/search".

Thank you
Title: Re: Search module and category filter
Post by: PRO on April 04, 2013, 20:11:03 PM
thats all it has?

Mine has

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


Title: Re: Search module and category filter
Post by: PabloArias on April 08, 2013, 12:35:24 PM
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
Title: Re: Search module and category filter
Post by: PRO on April 09, 2013, 09:44:12 AM
do you have a url?
Title: Re: Search module and category filter
Post by: PabloArias on April 09, 2013, 09:52:42 AM
URL: http://www.mekdes.es/ (http://www.mekdes.es/)

Thank you
Title: Re: Search module and category filter
Post by: PRO on April 10, 2013, 19:11:03 PM
have you tested this without sef enabled?

do you have joomla cache turned on?

if so, have you tested without it?
Title: Re: Search module and category filter
Post by: PabloArias on April 15, 2013, 16:16:15 PM
Hi again:

I've tested with SEF and cache disabled.

Thanks again and best regards!
Title: Re: Search module and category filter
Post by: PRO on April 19, 2013, 01:24:17 AM
have you tested on another server?

Title: Re: Search module and category filter
Post by: rjcroasdale on July 17, 2013, 10:31:28 AM
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
Title: Re: Search module and category filter
Post by: rjcroasdale on July 18, 2013, 15:55:20 PM
https://forum.virtuemart.net/index.php?topic=112741.msg395942#msg395942

^ maybe fix?
Title: Re: Search module and category filter
Post by: PabloArias on August 29, 2013, 19:00:58 PM
I've tested it on another server and same result.

Thanks and best regards.