Help needed to create a dynamic product page with an "In stock" filter

Question:
I need help writing code to connect the front end of my dynamic product list page in Wix Editor. This page must have a working “in stock” filter, “category” filter, and “load more” product button.

Product:
Wix Editor

What are you trying to achieve:

I am creating a shop that sells produce from a farm. This shop must have a category filter to sort by produce type, and an “In Stock” filter, that allows shopper to see only in stock produce. Additionally, I would like to have an inventory counter on each product that shows shoppers how many of each product is available and a “load more” button on the page which allows to load more products.

What have you already tried:

I created my shop using the standard Wix editor. However, I found that Wix does not offer an option for “In stock” filters or an inventory counter.

I have then recreated the front end of the same page as a “dynamic page” using a repeater and connecting images of products, and buttons to datasets. I added the “In stock” filter option I need, and a dropdown filter to sort by category(See Image)

The help that I need is in writing the code to make this dynamic page work.

Thanks.

Hey Paulo,

Check these examples out, they might be of some help:

I found a quick solution to this problem. Just change the sorting default from “Recommended” to Sort by: Price (low to high)
the ones in stock will have a value and show first followed by OUT OF STOCK to the end

This is a quick workaround, but it sounds like you’re limiting yourself to sorting only by price low to high. If this isn’t an issue for your store then I’m glad you were able to resolve this!

Otherwise, I’m happy to help with setting up the filters to give you more flexibility in filtering. I have these exact custom filters built on 4 of my clients stores, so the code is already written and can be set up pretty quickly.