News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

2.022a - FIX for search - category filter not working properly

Started by atrus, August 07, 2013, 09:12:17 AM

Previous topic - Next topic

atrus

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

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.