Best practice/approach for custom product display for customers

I am creating a page on our website using Wix Editor and Velo that asks customers a series of questions, and based on their responses, I need to display the relevant products from our store along with an add to cart button.

My question is, in Velo, what is the best approach create the filtered product display after the questions? Since it doesn’t look like Velo will allow you to instantiate elements at run time, I assume it’s going to be a hidden repeater (I would much prefer a table), the containers of which will be modified after the questions are answered, either by manipulation of the dataset, or hiding them, and then the repeater shown.

I am not looking for anyone to write code for me, just some input from someone more experienced with the Velo landscape so I don’t go down a rabbit hole that is a poor solution (eg hiding repeater containers).

Feel free to ask any relevent questions. Thank you in advance.

I’d go with a Repeater, filter your data to just the items you want to display, and then assign them to the .data property. You can hookup an add to cart button using the addProducts function.

Repeaters also give you helper functions like onItemReady() and forEachItem() which might be useful.

That approach worked perfectly! Thank you for the response! :slight_smile:

1 Like