Display categories + subcategories in filter mod.

  • Posts: 4
  • Thank you received: 0
12 years 2 months ago #65782

Hello, first of all thanks for creating this great shopping component.
I am using business edition and i really need very efective filter module since i have over 30.000 products.

The filter i want to create is like: select main category, then it shows sub categories of the category selected. Then when you select subcategory it shows a product listing page.

I have done a listing that shows subcategories in category listing page, not in filter module. That was not the exact thing what i want.

And in filter module there will be another filter again displaying different main category and it's subcategories.

Is there any way to do this filter module, i believe there is but i really need help here.
I am writing an example to make things clear.
Thanks in advance.

Example Product: Renault Megane 1.5 DCI Cylinder Gasket Victor Reinz

Categories: [Brands]Renault -> Megane -> 1.5 DCI
[Product Groups] Gaskets -> Cylinder Gaskets
[Manufacturers] Victor Reinz
Filter Module:

Please Select Automobile: [Single Dropdown] Renault [It will bring subcategories of Renault when user select main category]
->[Single Dropdown] Megane [Again when user select subcategory"Megane", it will bring Megane's subcategories of megane]
->[Single Dropdown] 1.5 DCI

Please Select Part: [Single Dropdown] Gaskets
->[Single Dropdown] Cylinder Gaskets

If user does not describe product groups, can filter list down the all products of automobile selected?

Please Select Manufacturer: [Single Dropdown] Victor Reinz

Again, if user does not describe manufacturer, can filter list all prodcuts of Megane 1.5 DCI Cylinder Gasktes ?

Thank you again.
Have a nice day.

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
12 years 2 months ago #65933

Hi,

I don't think that you should use filters for that.
The problem you'll have is that you won't be able to have the filter dropdowns display/hide based on the other dropdowns selection as each filter is independent from the others.

You should rather create category listing modules.You can have one per category tree and you can have the listing in the module change based on the current category when the synchronize content option of the module is on. You will just have to set the "menu" option of the modules to a products listing menu which displays all your products (associated category=main product category and sub element filter=all sub elements).

We have a tutorial on category listing modules:
www.hikashop.com/en/support/documentatio...ml#categories_module

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

  • Posts: 4
  • Thank you received: 0
12 years 2 months ago #66576

Thank you for your interest and answer.
I have done as you mentioned. I think this way is ok too.

However, in next versions that dependent filters will be available?
That would bring much practical shop. I hope you add that feature.

I have another questions, can i ask here or do i need to create new post, or pm you ?

The question is in text filter module, multiple words are searched via "or".
I mean when i type Renault Cylinder, it brings results Renault or Cylinder, some cylinder are shown but there is no Renault in it.
I want it to bring only products both have Renault and Cylinder. Is that possible or there is an option for that ?

Again, thanks. Have a nice day.

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
12 years 2 months ago #66698

Filters are already really complex.
Adding more complexity by having them dependent sounds too much, at least for now. We'll see how it goes but it's not a priority for now.

There is no option to change the search behavior.
You would have to edit the file administrator/components/com_hikashop/classes/filter.php and change the line:
$filters[]='('.implode(' OR ', $list).')';

to:
$filters[]='('.implode(' AND ', $list).')';

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

  • Posts: 4
  • Thank you received: 0
12 years 2 months ago #66709

Thank you for your answer, it is working perfectly now.
I have another question about wievs, i want to customize price view.

In default, it is like:

10,70 TL (9,07 TL KDV'siz) / adet [Language turkish]

in parenthesis, it shows the price without tax. I want it to show first without tax and after with tax, and change the colors and remove "/ adet" .

I looked product -> listing_price.php but there are only if and some php commands. Can you help me about this subject too pls.

Last edit: 12 years 2 months ago by orient.

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
12 years 2 months ago #66976

For the " / adet" text and to remove the parenthesis you can use a translation override:
www.hikashop.com/en/download/languages.html#modify

For the prices order, that's indeed in the listing_price file that you need to change that.
Just swap the line:
echo $this->currencyHelper->format($price->price_value,$price->price_currency_id);

and the line:
echo $this->currencyHelper->format($price->price_value_with_tax,$price->price_currency_id);

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

  • Posts: 14
  • Thank you received: 0
9 years 6 months ago #202743

Hello ,

I have the same problem with the mark and model and the different types of spare parts.
And i get get it to work correctly.
I tried setting it up like you sad, but it doesn't work the way it should.
What I'm trying to do is the same again a car parts shop and i wish to display the parts first by type then by mark and model and tried the categorization with the Brand.
But the problem is that when i select a brand it shows all the products for that brand not only the category i want.
Is there a work around for this ?

Thanks in advance.

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
9 years 6 months ago #202744

Hi,

There is no work around for that. Why would that be a problem to already display the products of that brand at that point ?
After you select the model, the list will be filtered and when you finally select the type, it will again get filtered down to just the products matching all three filters.

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

  • Posts: 14
  • Thank you received: 0
9 years 6 months ago #202783

Hello. Thanks for the interest and fast replay :)

What i have done is this :
I have a menu to Brand listing of the car models Citroen
And in that listing i have configured the Hika Content module to show only items from Category "Щори".
But it shows items from another category of parts not only from the one i have selected.
I tried with all "Content on product page" option to "in the same category" and "in the module associated category" to no result.

Attached are screen shots of the current configuration.

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
9 years 6 months ago #202795

Hello,

But it shows items from another category of parts not only from the one i have selected.

You should probably set the "sub element filter" option to "Direct sub elements" and test it again.

Last edit: 9 years 6 months ago by Mohamed Thelji.
The following user(s) said Thank You: berle

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

  • Posts: 14
  • Thank you received: 0
9 years 5 months ago #203157

Hello ,
Thanks for the tip.

Tried that no change still the same when you select the brand it shows other elements.
Could it be something in the main configuration of the Hika Shop ?
Or I'm i getting this wrong or something because by logic it should work.
Thanks in advance.

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
9 years 5 months ago #203198

Hi,

When you create a brands listing menu item, it will display a listing of the brands. So make sure that you select a brand or the main brand of the shop in the "associated category" setting and not a category.

The following user(s) said Thank You: berle

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

  • Posts: 14
  • Thank you received: 0
9 years 5 months ago #203262

Thanks for the help :)

I have tried all possible combinations of the modules and the brands and can get it correct.
I'm starting to think that what I'm trying to do not the possible and i have understood incorrectly what is explained here.
My idea was to create brands for each car model grouped in categories by make and model. And in the product categories to configure the product categories by type.
And for each product to select the category for that product and select a brand and configure the modules and menu items in such a way that you go on menu Accessories>> Car shades and to see all the brands listed ( and below is a content module that for that module you select to be showing items only from category Accessories>> Car shades ) and as you go select Make then model the modules filters the products .
But what ever I do I get Products that are not from the selected product category, but all products for that brand and they are not filtered by the category listing module.
And at the moment I'm thinking this is only possible to do If for every product category I make all the car models, witch is about 40 000 models for each of 200 categories and I'll just give up :)

Thanks in advance for all the help.

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
9 years 5 months ago #203298

Hi,

You indeed cannot have brands under categories.
So your plan is not possible like that.
As I said in my first message to you, you should stick to having a filter for the brands, and a filter for the maker/year with custom fields. Then, no need to have 40000 models.

The following user(s) said Thank You: berle

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

  • Posts: 14
  • Thank you received: 0
9 years 5 months ago #203987

Thanks for all the help.

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

Time to create page: 0.102 seconds
Powered by Kunena Forum