Hey
I just wanted to show what I just did. I used the Wix Stores product Data Collection and made that Data Collection as Dynamic Pages. Then I managed to query and get all information from the products including colors, all media items and also additional information boxes.
I created a repeater with ordinary shapes in it, populated it with the records and all the colors found on each product. Then I used the style.backgroundColor to set the color values from the product data to the shape in the repeaters.
Repeaters can be used to make some cool things.
As you can see on the above Dynamic Page I list the main media and then I have a repeater which will show you all the media items in the product record. Then comes the color repeater which works great.
At the right bottom I then use the repeaters again to get the additional information from Wix Stores on the product and populate collapsable boxes with that information. In these boxes I use the html property so all data inserted in Wix Stores get displayed correctly.
I also managed to created a looping function which takes all colors from all products and store them in a separate Data Collection i call ProductColors. This way I can create my own color filter functions for products on the Dynamic Page where all products are displayed.
This makes it possible to create more power in Wix Stores than you might think is possible.
Happy coding!
#wixstores #repeaters #datacollections #colors #style #backgroundColor