[Skip to main content](#vessel-content)

#   No ajax filtering

##

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

7 years 4 months ago [\#308590](#308590) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  *[No ajax filtering](/forum/45-filters-search/897866-no-ajax-filtering#308590 "-- HikaShop version -- : 1907121821  Hi,  Just installed Hikashop 4.2.0 on localhost and seems cant find ajax filters. Filters are working as it was, reloading the whole page. Looking html i see it has changed... Trying with blank protostar template. Maybe i miss something?  Here are some screenshots:  Thanks")* was created by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")*

-- HikaShop version -- : 1907121821

Hi,

Just installed Hikashop 4.2.0 on localhost and seems cant find ajax filters. Filters are working as it was, reloading the whole page. Looking html i see it has changed... Trying with blank protostar template. Maybe i miss something?

Here are some screenshots:

[ ![sort.png](/forum/attachment/47232) ](/forum/attachment/47232 "sort.png")

[ ![sort.png](/forum/attachment/47232) ](/forum/attachment/47232 "sort.png")

[ ![shoes&#95;2019-07-12.png](/forum/attachment/47233) ](/forum/attachment/47233 "...2019-07-12.png")

Thanks

- [ ![sort.png](/forum/attachment/47232) ](/forum/attachment/47232 "sort.png") [ ](/forum/attachment/47232?download=1 "sort.png")
- [ ![shoes&#95;2019-07-12.png](/forum/attachment/47233) ](/forum/attachment/47233 "...2019-07-12.png") [ ](/forum/attachment/47233?download=1 "...2019-07-12.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg5Nzg2Ni1uby1hamF4LWZpbHRlcmluZz9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile")
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

7 years 4 months ago [\#308608](#308608) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  Replied by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")* on topic *[No ajax filtering](/forum/45-filters-search/897866-no-ajax-filtering#308608 "-- HikaShop version -- : 1907121821  Hi,  Just installed Hikashop 4.2.0 on localhost and seems cant find ajax filters. Filters are working as it was, reloading the whole page. Looking html i see it has changed... Trying with blank protostar template. Maybe i miss something?  Here are some screenshots:  Thanks")*

Same problem with category filtering.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg5Nzg2Ni1uby1hamF4LWZpbHRlcmluZz9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

7 years 4 months ago [\#308627](#308627) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[No ajax filtering](/forum/45-filters-search/897866-no-ajax-filtering#308627 "-- HikaShop version -- : 1907121821  Hi,  Just installed Hikashop 4.2.0 on localhost and seems cant find ajax filters. Filters are working as it was, reloading the whole page. Looking html i see it has changed... Trying with blank protostar template. Maybe i miss something?  Here are some screenshots:  Thanks")*

Hi,

Would like give some update here. Updated again with Hikashop 4.2.0 and it got a bit better.

1. It seems that ajax filtering works only with hikashop filter module. If filters are set to show on top of the product listing without module, it doesn't work. Just nothing happens.... You may want to take a look into this.

2. I would suggest to scroll page to the top after filtering is done. If you have a lot of filters on the left or right sidebar it is a pain for the user to scroll each time up. So we get better user experience if we do this...

3. Setting any filtering to submit on click to "YES" and then fast double tap filter (checkbox as example) or button "FILTER", console throws error "ReferenceError: clearTimout is not defined"

[ ![console.png](/forum/attachment/47237) ](/forum/attachment/47237 "console.png")

4. I also would like to say thank you for great improvements you have done. Like saving cart in cookies and ajax filtering. Thanks for listening to your users.

However, not sure how wishlist works now? I still need to loging in order to use wishlist when trying to add product to wishlist. So change log is a bit confusing...

Regards

- [ ![console.png](/forum/attachment/47237) ](/forum/attachment/47237 "console.png") [ ](/forum/attachment/47237?download=1 "console.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg5Nzg2Ni1uby1hamF4LWZpbHRlcmluZz9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

7 years 4 months ago [\#308630](#308630) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[No ajax filtering](/forum/45-filters-search/897866-no-ajax-filtering#308630 "-- HikaShop version -- : 1907121821  Hi,  Just installed Hikashop 4.2.0 on localhost and seems cant find ajax filters. Filters are working as it was, reloading the whole page. Looking html i see it has changed... Trying with blank protostar template. Maybe i miss something?  Here are some screenshots:  Thanks")*

Hello,

Please re-download HikaShop package to get the fix regarding the JavaScript issue.

For the other points, please provide details regarding your configuration so the support team will be able to easily reproduce the context and perform some analysis.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg5Nzg2Ni1uby1hamF4LWZpbHRlcmluZz9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

7 years 4 months ago -  7 years 4 months ago [\#308700](#308700) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[No ajax filtering](/forum/45-filters-search/897866-no-ajax-filtering#308700 "-- HikaShop version -- : 1907121821  Hi,  Just installed Hikashop 4.2.0 on localhost and seems cant find ajax filters. Filters are working as it was, reloading the whole page. Looking html i see it has changed... Trying with blank protostar template. Maybe i miss something?  Here are some screenshots:  Thanks")*

Hi,

Thanks for JS fix.

1. It is easy to reproduce the issue:

1. Create some filter, as example sort or something with checkbox
2. Create menu item of product listing or category listing
3. Via that menu item product options settings set Filters display to "YES"
4. Try to filter and see behaviour

Seems i am not the only one who have some issue like this: [ www.hikashop.com/forum/install-update/89...the-menu.html#308637](https://www.hikashop.com/forum/install-update/897877-ajax-filters-do-not-work-when-activated-from-the-menu.html#308637)

2. Sometime when filtering we get blank page with url params in it.

Here is the example which was done like this.

1. Installed Fresh Joomla 3.9.10 and Hikashop 4.2.0 with demo content. Created sort filter with radio. Filtering seems working but after pressing delete button i get this page:

[ ![fgh.png](/forum/attachment/47256) ](/forum/attachment/47256 "fgh.png")

[ ![Untitled&#95;2019-07-15.png](/forum/attachment/47255) ](/forum/attachment/47255 "...2019-07-15.png")

All test are done on protostar template with no modifcations.

Thanks

- [ ![Untitled&#95;2019-07-15.png](/forum/attachment/47255) ](/forum/attachment/47255 "...2019-07-15.png") [ ](/forum/attachment/47255?download=1 "...2019-07-15.png")
- [ ![fgh.png](/forum/attachment/47256) ](/forum/attachment/47256 "fgh.png") [ ](/forum/attachment/47256?download=1 "fgh.png")

Last edit: 7 years 4 months ago by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile").

The following user(s) said Thank You: [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg5Nzg2Ni1uby1hamF4LWZpbHRlcmluZz9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86560
- Thank you received: 14307
-
-

7 years 4 months ago [\#308719](#308719) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[No ajax filtering](/forum/45-filters-search/897866-no-ajax-filtering#308719 "-- HikaShop version -- : 1907121821  Hi,  Just installed Hikashop 4.2.0 on localhost and seems cant find ajax filters. Filters are working as it was, reloading the whole page. Looking html i see it has changed... Trying with blank protostar template. Maybe i miss something?  Here are some screenshots:  Thanks")*

Hi,

Thank you for the details. I was able to reproduce the issues and added some patchs for them. Please download again the install package on our website and install it on yours and it should work much better now.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg5Nzg2Ni1uby1hamF4LWZpbHRlcmluZz9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

7 years 4 months ago [\#308732](#308732) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[No ajax filtering](/forum/45-filters-search/897866-no-ajax-filtering#308732 "-- HikaShop version -- : 1907121821  Hi,  Just installed Hikashop 4.2.0 on localhost and seems cant find ajax filters. Filters are working as it was, reloading the whole page. Looking html i see it has changed... Trying with blank protostar template. Maybe i miss something?  Here are some screenshots:  Thanks")*

Hi,

It looks a bit better but there are still some issues.

Now filtering for sort does work and if filter type of checkbox is set to submit on click to "YES" this filter does work. However if i set submit on click to "NO" and try to filter with button "FILTER" it doesn't work. Same for reset button. It just nothing happens, no any action...

Here are some screenshots which i hope will help.

[ ![sett.png](/forum/attachment/47262) ](/forum/attachment/47262 "sett.png")

[ ![no.png](/forum/attachment/47263) ](/forum/attachment/47263 "no.png")

Thanks

- [ ![sett.png](/forum/attachment/47262) ](/forum/attachment/47262 "sett.png") [ ](/forum/attachment/47262?download=1 "sett.png")
- [ ![no.png](/forum/attachment/47263) ](/forum/attachment/47263 "no.png") [ ](/forum/attachment/47263?download=1 "no.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg5Nzg2Ni1uby1hamF4LWZpbHRlcmluZz9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86560
- Thank you received: 14307
-
-

7 years 4 months ago [\#308751](#308751) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[No ajax filtering](/forum/45-filters-search/897866-no-ajax-filtering#308751 "-- HikaShop version -- : 1907121821  Hi,  Just installed Hikashop 4.2.0 on localhost and seems cant find ajax filters. Filters are working as it was, reloading the whole page. Looking html i see it has changed... Trying with blank protostar template. Maybe i miss something?  Here are some screenshots:  Thanks")*

Hi,

I'm not able to reproduce the issue on my end.
Make sure you have the latest build and no override of the view files product/listing.php product/listing_div.php and product/filter.php
If you do, try renaming them in templates/YOUR_TEMPLATE/html/com_hikashop/product/ and try again.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg5Nzg2Ni1uby1hamF4LWZpbHRlcmluZz9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

7 years 4 months ago [\#308755](#308755) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[No ajax filtering](/forum/45-filters-search/897866-no-ajax-filtering#308755 "-- HikaShop version -- : 1907121821  Hi,  Just installed Hikashop 4.2.0 on localhost and seems cant find ajax filters. Filters are working as it was, reloading the whole page. Looking html i see it has changed... Trying with blank protostar template. Maybe i miss something?  Here are some screenshots:  Thanks")*

Hi,

Nope, no view overrides but i found the issue.

Via Hikashop configuration-&gt; Filter button position, setting it to "Right" or "Left" is fixing the issue.

So checked html and it seems if button position is set to "Inside". "Filter" and "Reset" buttons are missing some html "data-container-div"

Someone forgot to add:
Code:

&lt;?php echo $attributes; ?&gt;

For these buttons ![:)](/media/kunena/emoticons/3.png ":)")

Please take a look into it.

Thank you

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg5Nzg2Ni1uby1hamF4LWZpbHRlcmluZz9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

7 years 4 months ago [\#308757](#308757) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[No ajax filtering](/forum/45-filters-search/897866-no-ajax-filtering#308757 "-- HikaShop version -- : 1907121821  Hi,  Just installed Hikashop 4.2.0 on localhost and seems cant find ajax filters. Filters are working as it was, reloading the whole page. Looking html i see it has changed... Trying with blank protostar template. Maybe i miss something?  Here are some screenshots:  Thanks")*

Also I would suggest to scroll page to the top after filtering is done. If you have a lot of filters on the left or right sidebar it is a pain for the user to scroll each time up. So we get better user experience if we do this...

Or is there a trigger, after filtering is done, which i could use?

Thanks again

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg5Nzg2Ni1uby1hamF4LWZpbHRlcmluZz9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86560
- Thank you received: 14307
-
-

7 years 3 months ago [\#308760](#308760) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[No ajax filtering](/forum/45-filters-search/897866-no-ajax-filtering#308760 "-- HikaShop version -- : 1907121821  Hi,  Just installed Hikashop 4.2.0 on localhost and seems cant find ajax filters. Filters are working as it was, reloading the whole page. Looking html i see it has changed... Trying with blank protostar template. Maybe i miss something?  Here are some screenshots:  Thanks")*

Hi,

Thanks for the feedback. Indeed the attributes were missing for that button position and my buttons were in another position so I didn't see the issue.
I've added the patch and updated the install packages on our end.

Regarding the scrolling, I would like to wait a bit to get more feedbacks. The issue is I think you don't necessarily want to auto scroll.
For example, if you're using the filters at the top of the products listing, you don't want to move the scroll.
If the filters are on a side module it might make sense in some cases but not necessarily all the time.
Maybe adding an option to scroll to the top upon filtering in the module might make sense.

Regarding the triggers, we've added some but the javascript code might change in the future.
You have the trigger filters.updated that you can use with the params:
{el: el, refreshAreas : refreshAreas, resp: resp}
el is the element being clicked on, refreshAreas are the areas refreshed and resp is the response from the server for the submit of the filters data.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg5Nzg2Ni1uby1hamF4LWZpbHRlcmluZz9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

7 years 3 months ago [\#308766](#308766) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[No ajax filtering](/forum/45-filters-search/897866-no-ajax-filtering#308766 "-- HikaShop version -- : 1907121821  Hi,  Just installed Hikashop 4.2.0 on localhost and seems cant find ajax filters. Filters are working as it was, reloading the whole page. Looking html i see it has changed... Trying with blank protostar template. Maybe i miss something?  Here are some screenshots:  Thanks")*

Hi,

Happy to help as much i can.

1. About scrolling. Yes, you right. It depends on a lot of cases. However, even having filters on the top could make seens to scroll page up. As example: Having 2 or 1 product on mobile, i might add filter sticky to the top or bottom of page so after filtering is done, i definitely want page scroll up. Especially while 80% of traffic is mobile, i want user to have best experience i can give here...

Again this is more related to my needs but if you ask me, i would suggest to add extra option to scroll to the top on module and menu item itself. This definitely will be useful for someone else too.

2. Please in the future, if possible, consider adding this new triggers to your development docs, this would make life easier ![:)](/media/kunena/emoticons/3.png ":)")

Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg5Nzg2Ni1uby1hamF4LWZpbHRlcmluZz9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86560
- Thank you received: 14307
-
-

7 years 3 months ago [\#308768](#308768) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[No ajax filtering](/forum/45-filters-search/897866-no-ajax-filtering#308768 "-- HikaShop version -- : 1907121821  Hi,  Just installed Hikashop 4.2.0 on localhost and seems cant find ajax filters. Filters are working as it was, reloading the whole page. Looking html i see it has changed... Trying with blank protostar template. Maybe i miss something?  Here are some screenshots:  Thanks")*

Hi,

1. For the module, I definitely see the point. For the menu item, it only makes sense if you have the filters area stick to the top. So adding the option without the filters being sticky really makes no sense I think.

2. Yes. We'll have to do some work on the developer documentation to add all the new triggers that we've kept adding since the 3.0.0
There are many missing (mainly because we wanted to wait and make sure that they were stable enough).

The following user(s) said Thank You: [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg5Nzg2Ni1uby1hamF4LWZpbHRlcmluZz9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")**
- [![lousyfool's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28604.jpg)](/forum/user/28604-lousyfool "View lousyfool's Profile")
- [ Offline](/forum/user/28604-lousyfool)

Less More

- Posts: 2143
- Thank you received: 746
-
- [](http://www.inphase.one)
-

7 years 3 months ago [\#308797](#308797) by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")  Replied by *[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")* on topic *[No ajax filtering](/forum/45-filters-search/897866-no-ajax-filtering#308797 "-- HikaShop version -- : 1907121821  Hi,  Just installed Hikashop 4.2.0 on localhost and seems cant find ajax filters. Filters are working as it was, reloading the whole page. Looking html i see it has changed... Trying with blank protostar template. Maybe i miss something?  Here are some screenshots:  Thanks")*

> nicolas wrote: Maybe adding an option to scroll to the top upon filtering in the module might make sense.

+1

---

Need help with customisations of layouts, style or other site development? [ PM me!](/component/uddeim/?task=new)
(Don't forget to turn on [ "E-mail notification of new messages"](/component/uddeim/?task=settings))

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg5Nzg2Ni1uby1hamF4LWZpbHRlcmluZz9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[n00bster](/forum/user/56367-n00bster "View n00bster's Profile")**
- [![n00bster's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/56367-n00bster "View n00bster's Profile")
- [ Offline](/forum/user/56367-n00bster)

Less More

- Posts: 103
- Thank you received: 5
-
-

7 years 3 months ago [\#308801](#308801) by [n00bster](/forum/user/56367-n00bster "View n00bster's Profile")  Replied by *[n00bster](/forum/user/56367-n00bster "View n00bster's Profile")* on topic *[No ajax filtering](/forum/45-filters-search/897866-no-ajax-filtering#308801 "-- HikaShop version -- : 1907121821  Hi,  Just installed Hikashop 4.2.0 on localhost and seems cant find ajax filters. Filters are working as it was, reloading the whole page. Looking html i see it has changed... Trying with blank protostar template. Maybe i miss something?  Here are some screenshots:  Thanks")*

> nicolas wrote: Maybe adding an option to scroll to the top upon filtering in the module might make sense.

+1 for extra "scroll to top" option in modules

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg5Nzg2Ni1uby1hamF4LWZpbHRlcmluZz9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86560
- Thank you received: 14307
-
-

7 years 3 months ago [\#308808](#308808) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[No ajax filtering](/forum/45-filters-search/897866-no-ajax-filtering#308808 "-- HikaShop version -- : 1907121821  Hi,  Just installed Hikashop 4.2.0 on localhost and seems cant find ajax filters. Filters are working as it was, reloading the whole page. Looking html i see it has changed... Trying with blank protostar template. Maybe i miss something?  Here are some screenshots:  Thanks")*

Thanks for the feedback. It's noted on our end.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg5Nzg2Ni1uby1hamF4LWZpbHRlcmluZz9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

7 years 3 months ago [\#308922](#308922) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[No ajax filtering](/forum/45-filters-search/897866-no-ajax-filtering#308922 "-- HikaShop version -- : 1907121821  Hi,  Just installed Hikashop 4.2.0 on localhost and seems cant find ajax filters. Filters are working as it was, reloading the whole page. Looking html i see it has changed... Trying with blank protostar template. Maybe i miss something?  Here are some screenshots:  Thanks")*

> nicolas wrote: Hi,
>
> Regarding the triggers, we've added some but the javascript code might change in the future.
> You have the trigger filters.updated that you can use with the params:
> {el: el, refreshAreas : refreshAreas, resp: resp}
> el is the element being clicked on, refreshAreas are the areas refreshed and resp is the response from the server for the submit of the filters data.

Hi,

I've been trying to retain some click class "open" ( which is added on click to show dropdown ) after filter refresh but not sure how properly this should be done with new ajax filters.

Basically the idea is to wrap each filter in dropdown and on click filter, the dropdown will be shown with checkboxes. I do have "submit on click" set so after checkbox is clicked, filters are refreshed and dropdown hidden due missing "open" class. So i am trying to add it back after filter is refreshed. As example i do have this:
Code:

window.Oby.registerAjax("filters.updated",function(params){ jQuery('.dropdown_size').addClass('open'); });

However this runs in same time filter is getting refreshed. How to check that filter refresh is done and only then do what i need?

Any help from any one would be really appreciated.

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg5Nzg2Ni1uby1hamF4LWZpbHRlcmluZz9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[GW](/forum/user/33851-gw "View GW's Profile")**
- [![GW's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33851-gw "View GW's Profile")
- [ Offline](/forum/user/33851-gw)

Less More

- Posts: 200
- Thank you received: 75
-
-

7 years 3 months ago [\#308925](#308925) by [GW](/forum/user/33851-gw "View GW's Profile")  Replied by *[GW](/forum/user/33851-gw "View GW's Profile")* on topic *[No ajax filtering](/forum/45-filters-search/897866-no-ajax-filtering#308925 "-- HikaShop version -- : 1907121821  Hi,  Just installed Hikashop 4.2.0 on localhost and seems cant find ajax filters. Filters are working as it was, reloading the whole page. Looking html i see it has changed... Trying with blank protostar template. Maybe i miss something?  Here are some screenshots:  Thanks")*

Hi,

I haven't had an opportunity yet to look at the new Ajax filters, but for your issue wouldn't it be sufficient to simply add a small delay? Like so: Code:

window.Oby.registerAjax("filters.updated",function(params){ setTimeout(function(){ jQuery('.dropdown_size').addClass('open'); },500); });

Due to the asynchronicity of Ajax requests, a small delay ensures all elements are (re)loaded on the page before executing your javascript.
Hope that helps.

The following user(s) said Thank You: [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg5Nzg2Ni1uby1hamF4LWZpbHRlcmluZz9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

7 years 3 months ago [\#308926](#308926) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[No ajax filtering](/forum/45-filters-search/897866-no-ajax-filtering#308926 "-- HikaShop version -- : 1907121821  Hi,  Just installed Hikashop 4.2.0 on localhost and seems cant find ajax filters. Filters are working as it was, reloading the whole page. Looking html i see it has changed... Trying with blank protostar template. Maybe i miss something?  Here are some screenshots:  Thanks")*

Hi,

Thanks GW for replay. I was thinking about it but it doesn't work. If request takes more time than set in setTimeout function then it fails to add class. As example if use 1000ms, so it mostly works but not always, that's why i am looking for the proper solution.

I am also thinking to use localStorage, save and retain it for later after ajax refresh as there are other things i will have to store too. It is easy to do with jQuery ajax request but with Hikashop, without even code example, can't find solution as for now....seems there is no such trigger ![:(](/media/kunena/emoticons/22.png ":(")

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg5Nzg2Ni1uby1hamF4LWZpbHRlcmluZz9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

7 years 3 months ago [\#308929](#308929) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[No ajax filtering](/forum/45-filters-search/897866-no-ajax-filtering#308929 "-- HikaShop version -- : 1907121821  Hi,  Just installed Hikashop 4.2.0 on localhost and seems cant find ajax filters. Filters are working as it was, reloading the whole page. Looking html i see it has changed... Trying with blank protostar template. Maybe i miss something?  Here are some screenshots:  Thanks")*

So i created dynamic click based on filter clicked and moved class away from refresh content. Now it works. Issue solved.

And sorry for off topic.

Thanks again

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ1LWZpbHRlcnMtc2VhcmNoLzg5Nzg2Ni1uby1hamF4LWZpbHRlcmluZz9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.122 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
