Pre-select filters with only 1 option

  • Posts: 38
  • Thank you received: 0
9 years 1 week ago #220605

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.6.8

I'm pretty sure this is going to be difficult and I'm not sure if this is a feature request or not. Sorry. Basically I have a set of filters on products (that could have been assumed). I also have a number of sub-categories that products can be associated with that are the best of those filters (i.e. lowest running cost, etc). When I use the "value" menu item (i.e. lowest running cost) the filters are reacting (i.e. it shows the "low running cost" option) however they are not "pre-selected" meaning that if somebody uses another filter (i.e. colour) they are not seeing this sub-category being filtered but ALL products. I have tried to create a filter just for this menu item but the results were very strange with it knocking out 3 out of 5 filters including some with multiple options available??

I am going to be uploading a version of this build to my demo server next week at some point but wondered if this made enough sense to proffer an answer at this stage?

My feelings to you all at this sad time. :(

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
9 years 1 week ago #220630

Hi,

When you navigate to a products listing of a category, if you use a category filter, the system will look for either:
- products in the category you navigated to which are also linked to the category you selected in the filter (because you can have several categories selected for a product).
- products in the category selected in the filter.
This behavior depends on whether the "force redirect" setting of the filter module is activated or not.
There is no setting to have the filter take into account the category used for the navigation.
Doing that would require customizing the code of the file "filter" of the view "product" via the menu Display>Views in order to force the selected category based on the current category of the listing. But it would require a developer to help you with that.

Please Log in or Create an account to join the conversation.

Time to create page: 0.035 seconds
Powered by Kunena Forum