Filter on numeric attribute and take care of absent value #5302
-
Hi Everyone, We are somewhat blocked with a capability that we want to provide to our customers. In addition, we have some records with an infinite number of stock so we create some records without However there is one main problems : The following documentation mixing-type-of-filters-in-or-conditions tell that we can not mix numeric and tags filters. O.K ! So maybe use a custom attribute named "is_limited_stock" with a boolean value that we could use through numeric notation (See Note about boolean attribute in numeric filters). It seems great and seems to work, however we do not succeed to get a proper way of include this filter using But it seems easier writing than doing. 😫 What are our best options ?
Related issues : Yours faithfully, |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 3 replies
-
There's many ways to solve this, and ideally you would be able to put Infinity, but that doesn't work, but what do you think about adding a value of let's say 10000 (much higher than regular stock) so it shows up in the filter, and manually add a max value to the range slider? |
Beta Was this translation helpful? Give feedback.
-
Hi @Haroenv, Thanks for this answer. As we are using "min-only" filters, we followed your advice using solution (2). Yours faithfully, |
Beta Was this translation helpful? Give feedback.
There's many ways to solve this, and ideally you would be able to put Infinity, but that doesn't work, but what do you think about adding a value of let's say 10000 (much higher than regular stock) so it shows up in the filter, and manually add a max value to the range slider?