Weird initial sorting/filtering behaviour for List filters & Query parameters

I have just upgraded our showroom from Attributes v1 to v2, but I have encountered some weird issues with it.

When the page initially loads, there are not supposed to be any filters or sorting applied to the CMS collection, but for some reason there are applied unknown sorting & filtering properties to it anyway. This means that instead of showing the 176 different cars, it only shows 5 cars.

When I hit the clear all button, it will show all the cars in the cms, BUT when query parameters toggled on the URL will become cluttered with random characters which can be hundreds upon hundreds of characters long.

I have provided links below. On our custom domain site it runs on V1 and everything works great, but on our stagging site which runs on V2, that will have the issues mentioned above.

It is important that we can get our new Showroom up and running again as soon as possible. If anyone know of a solution, please share it. Thank you in advance.

Here is a read only link:

Here is the stagging domain link to see it live on the website:

Here is the current website running on Attributes V1 at our custom domain:

Hey @alexanderhnj2001! The query params are coming from the dynamic filter integration that is new for V2. That said, we’ve got a fix coming to clean them up — similar to how they looked in V1. This should be live before the end of the day.

As for the list showing only 5 items on load — it looks like the range slider values from the query params are being applied to the list. I’ve flagged this with the team, and we’re looking into it ASAP.

Thank you @Support-Luis ! Your help is much appreciated. Looking forward to the Query parameter fix.

Do you know when I can expect a solution to the range slider issue (pre-applied filter issue)?

Both issues should be fixed with the same update!

However, please let me know if the range is still being applied on load afterwards, so we can look into it!

Okay sounds good Luis. Just let me know when the update is live or when it is expected to be live, then I can test it out and see if the query parameters are fixed as well as the weird sorting issue.

Again thank you.

@alexanderhnj2001 the fix is now live! Can you test and let me know your thoughts?

Be sure to clear your browser’s cache so the latest script version is loaded!

@Support-Luis I have now tried and tested the new update, and the Query Parameters are now better and more readable. However, on initial load of showroom, only a few cars are visible, and the facet count for car brands are all 0. This is true, until I hit the clear all button. Then everything seems to work as intended. I have no idea what causes this. Do you have any ideas?

Please let me know if you do, and if you need anything additional from to help me fix this issue.

@alexanderhnj2001 I notice that the 5 cars on load correspond to the same items that would appear if you interact wit the range sliders and manually set them to their star/end position.

I’ve reported this to the team and we will be taking a look at it.

@alexanderhnj2001 could you add the fs-list-fieldtype="number" attribute to all fields (collection items and filter inputs) for the following categories?

  • udbetaling
  • ydelse
  • forbrug
  • Elektrisk-rækkevidde

This will help us debug further.

@Support-Luis I have added the attributes to the listed elements. Please let me know if I need to do anything else.

We are really stuck until this issue have been resolved. So your help and fast responses are much appreciated.

Thank you @alexanderhnj2001, we are taking another look.

I’ll get back at you as soon as possible

@Support-Luis sounds great! Looking very much forward to hearing from you :grinning_face_with_smiling_eyes:

Hey @alexanderhnj2001!

The fs-list-fieldtype="number" attribute must be added to the elements in the CMS Items as well, it seems like you’ve only added it to the filter UI elements.

Can you add it to the collection items as well and let me know how it goes?

Hi @Support-Luis Is there a fix for the Query params? I am trying to send traffic to a pre-filtered list and my list is not sorting with the URL. Using Attributes V2

Hey @Gab! Can you share your read-only link?

You can create a new thread if you’d like!

Of course, here you go:

Hey @Gab! With the updates we pushed last week, there is no need for this field.

The query params are now being generated as ?product_equal=Nail+Care, which will load the list filtered on this category value.

I’ve modified the URLs for the home buttons with an override, and shown the functionality in the video below

1 Like

@Support-Luis I have added the fs-list-fieldtype=“number” to the CMS items as you mentioned earlier. I don’t see a difference unfortunately.

Is there anything else I need to do, to make it easier for you to debug and find a solution? We are quite desperate at the momement.

Thank you in advance

@alexanderhnj2001

We are taking a look, apologies for the inconvenience :folded_hands:

@Support-Luis thank you for your assistance! Could you please update me on the current status? Additionally, if resolving the issue is expected to take some time, would implementing a temporary custom script be a viable solution in the interim?

Thank you!