How to link products to an audio-file repeater?

Question:
How do I display an audio-file repeater based on conditions (linked with the products)? Should it be done using JS or just with a fancy CMS thing?

Product:
Wix Studio Editor

What are you trying to achieve:
So, I have this website which potentially can sell audiofiles/audio libraries and presets related to music production (digital). I used the Wix stores app to make the databases and pages for products and stuff. I want to add some sample audios so the customer can get a gist of what they are going to buy and if they would like it.

Basically, I want the repeater of the audio files to show only the audio files related to the product. Read below for what I have tried.

What have you already tried:
I have another database called Audiofiles which contain the name, audio, productref* and Audionumber (Productref is a reference to the product from the wix app product database), I tried linking the audio repeater to the Audiofiles database but it seems to display ALL the audios instead of specific audios for the specific product. How do I make it work?

Additional information:


p.s.: I haven’t really designed the audioboxes properly yet, just wanna make sure it works first

Design looks great already - even if not done properly! :slight_smile:

You’ll likely need to use getProduct() on the Product Widget - Docs here - https://dev.wix.com/docs/velo/api-reference/$w/product-page/get-product

And then filter the productref by the ID of the product being viewed.

Hope this helps :slight_smile:

1 Like

Sure, I’ll try it out and let you know! thankyou!!

Thankyou! Made it work using getProducts() and eq() [wixdata filter].