button to reset filter?

  • Posts: 63
  • Thank you received: 2
12 years 11 months ago #36807

hi,
i have set up filters for my products. is there anyway i can put a reset button within the form which when clicked will reset all the filters.

thanks

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

  • Posts: 83103
  • Thank you received: 13415
  • MODERATOR
12 years 11 months ago #36925

Hi,

No there is no option to have a button to reset all the filters at once. But in your filters you have an option to have a delete button to remove the selection for each filter.

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

  • Posts: 63
  • Thank you received: 2
12 years 11 months ago #36951

thank you very much for your reply Nicolas but that delete button is not compatible with single dropdowns. isnt it?

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

  • Posts: 83103
  • Thank you received: 13415
  • MODERATOR
12 years 11 months ago #37032

It should be compatible with single dropdowns too.

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

  • Posts: 63
  • Thank you received: 2
12 years 11 months ago #37273

i have a single dropdown filter which i applied on a custom field. here is the error i am getting.
thanks

Attachments:

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

  • Posts: 83103
  • Thank you received: 13415
  • MODERATOR
12 years 11 months ago #37388

First, please make sure that you're using the latest version of HikaShop (1.5.6) as we made several changes to avoid these errors.
Second, if you have that problem with the latest version, could you do a screnshot of the options of your filter so that we can reproduce the problem on our end ?

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

  • Posts: 63
  • Thank you received: 2
12 years 11 months ago #37456

Hi, thanks for the reply. i am using the latest version 1.5.6 with joomla 2.5
here are the screenshots of both filter options and error message at the front end.
thanks

Attachments:

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

  • Posts: 83103
  • Thank you received: 13415
  • MODERATOR
12 years 11 months ago #37461

Please change the line:
if(is_array($field->field_value)){

to:
if(isset($field->field_value) && is_array($field->field_value)){

in that file administrator/components/com_hikashop/classes/filter.php
and that should not display the error anymore.

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

  • Posts: 63
  • Thank you received: 2
12 years 11 months ago #37472

thank you very much for such a quick reply Nicolas. the error msg has gone but just noticed another problem which was also there before we made this change in filter class and is still there. as you can see in the screenshot attached, filter is gone back to its default value instead of showing "Denton and Kennell" and there is no more reset icon with that.

thanks

Attachments:

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

  • Posts: 83103
  • Thank you received: 13415
  • MODERATOR
12 years 11 months ago #37574

Could you give a link to that page ?

I know that you activated the dynamic option of the filter, so it will only display the possible values for the filter. The error you had meant that there were no value found for the products in the listing.
It's hard to say anything more about that problem without looking at the behavior of your filters directly on the page. But I would say that deactivating the dynamic option of the filter should already help a lot.

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

  • Posts: 63
  • Thank you received: 2
12 years 11 months ago #37593

as you can see in the screenshot attached that there was a product falling under the selection i have made. Shotgun type="Denton & Kennell" thats why we have 1 filtered result there. i tried changing Dynamic display to no but the problems stays the same. i am currently working on a localhost and will try to upload the site if you really need to have a look. but i think the information is already enough to reproduce the problem. what do you think?

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

  • Posts: 83103
  • Thank you received: 13415
  • MODERATOR
12 years 11 months ago #37706

We're not able to reproduce the problem on our end, that's why we need more information. Idealy a backend and FTP access to the website would allow us to directly debug the problem and test the solution on your website.

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

  • Posts: 63
  • Thank you received: 2
12 years 11 months ago #38312

Hi Nicolas,

thanks for the fix but i am still having problems. the deleteable filters are still not working fine. send you the details in private message please check.

thanks

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

Time to create page: 0.074 seconds
Powered by Kunena Forum