Show results from multiple categories

  • Posts: 101
  • Thank you received: 12
9 years 1 month ago #217373

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 2.5.27
-- PHP version -- : 5.4.35

Hi,

I'm using the "HikaShop Filter Module".
I have the following categories structure (there is also a picture available below/attachment):

Root
- Webshop
-- baptism (with several subcategories)
-- Communion (with several subcategories)
-- Marriage (with several subcategories)
-- Confectionery (with several subcategories)
-- Catalogues (with several subcategories)
- Cataloog (hidden category)

I made 2 filters: one for the category WEBSHOP and one for the category CATALOOG not to be confused with catalogues.
And I selected these two filters in the search filter module.
But only those from the category Webshop are shown. Nothing from the category Cataloog is shown.
I think this has to do with the parameter MENU in the module. This is linked to id 470 in my case.
And this is the product listing with only the Webshop selected in "Associated category".

Am I correct to assume this is the reason it's not working? How can I select more categories here cause it doesn't allow me to select a second category. Or is there another way to achieve what I want.

You can test this on the website webshop by searching for product PAS95621 which is a product in Cataloog.


Filters and module



Product listing


Thank you in advance.

Attachments:

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
9 years 1 month ago #217415

Hi,

I guess that the solution would be to not select any category in your filters.
That way, they would display, no matter what is the current category of the products listing displayed on the page.

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

  • Posts: 101
  • Thank you received: 12
9 years 1 month ago #217590

Hi Nicolas,

I don’t I understand completely what you suggested cause when I try it, it doesn’t seem to work.
So I removed both categories for the filter. (actually I could then use just one filter)
And when I look for a product that is only available in Cataloog, it’s not being displayed.
I still think that the product listing is preventing to show something from category Cataloog because in Associated Categories it has Webshop as category.
And Webshop and Cataloog are siblings in the category tree:
ROOT
-Webshop
-Cataloog

Do you say that if we don’t use categories in the filter that this would override the choice in the product listing?
Isn’t there a small hack so we can choose more than one categories in the product listing?

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

  • Posts: 13201
  • Thank you received: 2322
9 years 2 weeks ago #219570

Hi,

Yes you're right, you should select the "Root" category instead.
But, do you have renamed the "Product category" into "Webshop" and added the other category "Catalog" ?
If it is, the best would have been to have the following tree:
Root
- Product category
-- Webshop
-- Catalog

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

  • Posts: 30
  • Thank you received: 0
8 years 11 months ago #223014

Hello! Could you please say if it's possible to save filters parameters for all the categories?
For example, in root category I choose "Year = 2008", then go into the category root/cars and want the "year" filter to be preset to "2008". And so in all other categories.

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 11 months ago #223062

Hi,

I'm sorry but I don't understand.
Could you provide more information (like screenshots) of how you configured your filter, your category, etc ?

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

  • Posts: 30
  • Thank you received: 0
8 years 11 months ago #223130

joxi.ru/KAg7JW6CggOEoA
Here's a screenshot from category listing. I want to configure the right filter module like this: In this listing I choose filters parameters (car model, year, engine: 1500, 2010, 3.7), then go to sub-category and get those filters set to my "1500, 2010, 3.7".
We develop spare parts market, so I want to let our customer to set his car parameters at once and surf around the categories with no need to set the filters again. Switching from category to category saving the filter values.

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

  • Posts: 30
  • Thank you received: 0
8 years 11 months ago #223374

Hello!
Could you please say if the feature i described is possible or impossible?

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 11 months ago #223483

Hi,

There is no option to do that. It would require a custom plugin to be built in order to retain the filters throughout the categories, or you would have to remove the occurrences of

'.$cid.'_
in the file administrator/components/com_hikashop/classes/filter.php so that the filters aren't stored anymore "per category".

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

  • Posts: 30
  • Thank you received: 0
8 years 11 months ago #223884

Could you please explain, how to remove it? Just delete the text [ '.$cid.'_ ] wherever i find it?
For example, I have this string (#467):

$app->setUserState('com_hikashop.'.$cid.'_filter_'.$filter->filter_namekey.$completion, '');


What shall I do?

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 11 months ago #223911

Yes, that's exactly what you understood.

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

  • Posts: 30
  • Thank you received: 0
8 years 11 months ago #224170

It seems this hack doesn't work. I still have my filters resetting every time I open the other category. I think I need to use cookies to save filter values.

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 11 months ago #224183

Mmm, I don't see why that wouldn't work. That would require proper debugging from a developer in order to understand the situation.

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

Time to create page: 0.098 seconds
Powered by Kunena Forum