Filter dynamic display issue

  • Posts: 1119
  • Thank you received: 114
6 years 2 months ago #297715

-- HikaShop version -- : 1808311603

Hi,

I see some strange behiviour when using dynamic display via filters configuration. As example:

I do have products with sizes: S M L XL and so on....

2 products have 2 sizes S and M only. M is sold out for both....

When trying to filter by size S, dynamic display will hide other sizes and leaves only S and M.


1. It looks like dynamic display will filter not only by category but also by products it self. Is there a way to avoid it??
2. If M is sold out why it still is shown?

I guess fixing 1 will fix 2....

Could be i miss some settings please?

Kind Regards

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

  • Posts: 1119
  • Thank you received: 114
6 years 2 months ago #297716

Also. After filtering by color, as example" White", all other colors gets hidden. Is this how it should work?

I thought it should only show filters based on products in category only.

Thanks again

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
6 years 2 months ago #297727

Hi,

Please provide a screenshot of the settings of each of the filters you're talking about and a link to the page with them so that we can look at the situation.

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

  • Posts: 1119
  • Thank you received: 114
6 years 2 months ago #297755

Hi,

I am not able to reproduce same issue again. Could be i had some misconfigurations during setup/customization....

However i see some issue with filter reset button which should be hidden if no filters selected, but it doesn't work like that....

If there is no filters selected it still shows. Basically you need to use that reset button to clear all filters and only then it hides. If removing filters with submit on click, that button will be visible until clicked.

Easy to reproduce:

1. Creat some filter with checkboxes, set submit on click to "YES".
2. Turn on Show reset button.
3. Check checkbox to apply filter.
4. Uncheck checkbox to remove filter.
5. Reset button still visible....

Hope you can reproduce the issue.

Thanks

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
6 years 2 months ago #297783

Hi,

Thank you for your feedback. Yes, I was able to reproduce the issue.
change the line:

if(!empty($data)) $filterActivated=true;
to:
if(!empty($data) && $data != ' ') $filterActivated = true;
in the file "filter" of the view "product" via the menu Display>Views and that will fix the problem.
We'll add that patch on our end too.

The following user(s) said Thank You: kyratn

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

  • Posts: 1119
  • Thank you received: 114
6 years 2 months ago #297807

Hi,

1. That did fix the issue with checkbox filters but not with sort filter.

As example:

After i sort to lowest price the url is this ".....?limitstart=0&filter_Sort_by=price--lth" and reset button is visible.
After i sort back to default the url is this ".....?limitstart=0&filter_Sort_by=none" those reset button should be hidden but it's not.

Is there a way to fix it too?

2. I also see some small issue with price cursor filter and it's delete button. After dragging cursor filter the delete button for that filter will be visible but after dragging back to it's original/default state, delete button not hidden. Maybe this could be improved too?

Cursor and sort filters are set to submit on click.

Kind Regards

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
6 years 2 months ago #297839

Hi,

1. As yes. Change that same line to :

if(!empty($data) && !in_array($data, array(' ', 'none'))) $filterActivated = true;
That will fix it for the sorting filters. We'll add that change on our end.

2. Could you provide a screenshot of how your price cursor filter is configured so that I can look at the situation ?

The following user(s) said Thank You: kyratn

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

  • Posts: 1119
  • Thank you received: 114
6 years 2 months ago #297865

Hi,

1. Thanks. It is working perfect now.

2. Here is the screenshot of the price filter. We also tried with dynamic display ON, but it made no difference.



Thanks

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
6 years 2 months ago #297913

Hi,

Thanks, I was able to reproduce that. I however don't see any easy way to change that. The structure of the filtering system make it so that it would require extensive changes to be able to handle that.

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

  • Posts: 1119
  • Thank you received: 114
6 years 2 months ago #297915

Hi,

That's what i thought. It's not a big deal...
As for us we added some small jquery code to remove button if cursor max and min values are equal to our settings.

Thanks for the support Nicolas.

Kind Regards

The following user(s) said Thank You: Philip

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

Time to create page: 0.072 seconds
Powered by Kunena Forum