Unique affiliate button for every productpage

Hey there,

Couldnt find an affiliate template, so using a webshop template now.
The template using a dynamic productpage which got a button wich links to the shoppingcart.
How can I change the button that it links to an external linkadress in stead with the unique adress which is given in productdiscription field(in the productdatabase)?

I know how to create a button with a link on a page, but the things is that every product got an unique external link. There is only a single (dynamic) productpage and tens of products.

You can connect your button to a dataset and set the Click Action property of the button to be taken from this field in your database. This way the link will be changed depending on which dynamic page you are currently on. You can find more information about it here: https://support.wix.com/en/article/connecting-page-elements-to-a-dataset

thanx for the answer! Only somehow I can’t add a field in the productdatabase…