Show products with price of null

Hey,

I am using vue-instantsearch and have a product page with filters (Searchbox, PriceRange & RefinementList). My index has products with a price attribute with numeric values but it can be also null when the product has no price yet. Everything works only when the price range is 0 I also want to show the products with price of null.

I don’t know if I need to change a setting in algolia or change some code to fix this. So I hoped someone in the community can help me in the correct direction.

Thanks in advance,

Joeri

Hey Joeri,

The best way to go here is to fix this in your indexing process. It should be possible to check if the price is null and instead index as 0. This will be a lot cleaner than trying to combine the extra filter for null frontend-wise.

Hope that’s possible, otherwise we can try to find other workarounds.

Have a great day!

1 Like

Thanks you for your reply, fixed it with the 0 because this application never has a product with a price of € 0,00.

1 Like

Thought so, glad it was able to be solved that way!