Author Topic: 2.022a - FIX for search - category filter not working properly  (Read 2245 times)

atrus

  • Jr. Member
  • **
  • Posts: 127
Hi to all,

In 2.0.22a there is a major bug for the search (also manufacturer list-all-products) always filtering the category you are in.

The fix is:

Go to components/com_virtuemart/virtuemart.php. Rows 24-28 add:

if (JRequest::getString('view') == 'category' && JRequest::getInt('virtuemart_manufacturer_id') && !JRequest::getInt('virtuemart_category_id')) {

       JRequest::setVar('virtuemart_category_id', 0);

   require_once 'helpers/shopfunctionsf.php';

   ShopFunctionsF::setLastVisitedCategoryId(0);

}

rgrds,
chris

optmax

  • Jr. Member
  • **
  • Posts: 96
Re: 2.022a - FIX for search - category filter not working properly
« Reply #1 on: August 10, 2013, 22:19:17 pm »
I could be wrong, but isn't searching within the current category by design?
Results for current category are shown along with a search box populated with the search keyword and a button labelled 'Search in shop' which I think is supposed to repeat the search within all categories.

Problem is this doesn't work for me.

I have a temporary fix outlined in another thread http://forum.virtuemart.net/index.php?topic=117591.msg397477 and extended in my own reply.