Property members no longer available in filters since 2.7

Answered
Ilaria asked on March 21, 2019

Hello,
I noticed that ‘properties’ values are no longer available in flexmonster.getFilter().
As you can see in this JsFiddle (2.6), the response of ‘getFilter’ was an array of objects carrying information on the fields of type ‘property’ in the current hierarchy (in the example I can retrieve the values of ‘productId’ or ‘categoryId’)
I realized that this response has been simplified since 2.7, but I think it has been simplified too much, because the response now is an array of string (values of the filter) as you can see in this JsFiddle (2.7). Here I don’t know how to get the values of ‘productId’ or ‘categoryId’.
I need those values as explained in my previous request and subsequent emails.
I’m available if you need more information.
Thank you in advance!
Best regards,
Ilaria.
 

1 answer

Public
Tanya Gryshko Flexmonster March 22, 2019

Hello, Ilaria,

Thank you for writing to us.

We would like to inform you that in version 2.7 such behavior can be achieved by using a combination of getFilter and getMembers API calls. Here is a JSFiddle example demonstrating the approach: https://jsfiddle.net/flexmonster/4asbuzo5/.

Please let me know in case of further questions.

Regards,
Tanya

Please login or Register to Submit Answer