Filter Range slider and Filter no-Reset

  • Posts: 29
  • Thank you received: 0
9 years 1 month ago #217989

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.4

Hello!
I have three questions:

www.homenland.ru/tovary-dlya-dachi/raskladushki

1) After defining Filter range (slider for price) and getting results, I've got not a slider but a digital range instead as seen on the attached picture 1 filter-range.jpg .
Is it possible to still have range handlers (see attachment 2, filter-range-as-it-should-be.png) ?
Besides, after using this type of filter we can't see it's name (Price) after submitting, so it becomes pretty uninformative (attach 1).

2) Another issue. After submitting Price range, I've got some results, then I surf further down the site. After a while I get back to this category, but the filter is not reseted, showing the range defined before. (See attach 3). Is there a chance to reset it back after leaving that page?

3) and the third question: after reseting a filter, I get this type of URL: category/product/listing - how to get rid off this product/listing, leaving only category in URL as it was before submitting a filter?

Thank you in advance!

Attachments:

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

  • Posts: 29
  • Thank you received: 0
9 years 1 month ago #218197

And there is another bug (or a feature? :blink: )
Ok, let's say there is a price range (cursor type) already filtered (see attach 1 - price-range-filtered)
But if a user press Filter submit button again, there is nothing shown as result (attach 2 - price-range-filtered-again)

Attachments:

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
9 years 4 weeks ago #218521

Hi,

1. Turn off the "deletable" setting of your filter and that should do it.

2. Turn on the "redirect POST mode" setting of the HikaShop configuration for that.

3. That should normally be taken care automatically by the router.php of HikaShop.
A simple solution should be to edit the file "filter" of the view "product" via the menu Display>Views and change the code:
$url = hikashop_completeLink($type.'&task=listing&Itemid='.$this->params->get('itemid',0));
to:
$url = JRoute::_('index.php?option='.HIKASHOP_COMPONENT.'&Itemid='.$this->params->get('itemid',0));

The following user(s) said Thank You: Tim Moore

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

  • Posts: 29
  • Thank you received: 0
9 years 4 weeks ago #218526

Thank you Nicolas!

nicolas wrote: Hi,
1. Turn off the "deletable" setting of your filter and that should do it.

no, it didn't work the trick. After turning it off for the price range, I still get the Delete link and icon. Do I have to hide them by CSS or what?

But more over! When I choose the price range, after submitting it, I get wrong range displayed – not the numbers chosen. Does Hika filter rounds them to the closest prices present in that category?

Filter example www.homenland.ru/tovary-dlya-dachi/raskladushki

Attachments:
Last edit: 9 years 4 weeks ago by Tim Moore.

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
9 years 4 weeks ago #218536

Hi,

Yes, they are rounded to the maximum possible price in the results found. That's because the "dynamic display" setting of your filter is turned on.
Turn off that option and it should work like you want.

The following user(s) said Thank You: Tim Moore

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

  • Posts: 29
  • Thank you received: 0
9 years 4 weeks ago #218591

nicolas wrote: 3. That should normally be taken care automatically by the router.php of HikaShop.
A simple solution should be to edit the file "filter" of the view "product" via the menu Display>Views and change the code:
$url = hikashop_completeLink($type.'&task=listing&Itemid='.$this->params->get('itemid',0));
to:
$url = JRoute::_('index.php?option='.HIKASHOP_COMPONENT.'&Itemid='.$this->params->get('itemid',0));

done it without success! After reseting a filter I still get urls like www.homenland.ru/tovary-dlya-dachi/raskl...-%2013970&filter__8=

nicolas wrote: Yes, they are rounded to the maximum possible price in the results found. That's because the "dynamic display" setting of your filter is turned on.
Turn off that option and it should work like you want.


So it's not possible to show the shift from the initial values of the filter, without turning off dynamic "display setting"? You can see what I mean on the screenshot attached.
The reason is that it might be confusing to the visitors, so that after submitting a filter they can think of values shown as of final ones - like there are no products in the lower or upper range.

Attachments:

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

Time to create page: 0.069 seconds
Powered by Kunena Forum