Editing Product Page Layouts Individually

Hi everyone, I’ve been looking for a solution to this problem for weeks now so I’m really hoping someone can help me out with this.
As you can see from the image below, I’ve added a customized button to my product page. It links to an outbound address, and each and every other product page has the same button and link. However, I would like to link each individual page’s button to its own unique address, NOT for all to go to the same address. I haven’t yet found a way to do that, though, because each time I edit the layout and design of my product page, the changes apply to all products.
Any suggestions or workarounds would be greatly appreciated.

Hi Toba,

Linking a button dynamically with code on the products page will require some work as you’ll need to most likely create a new database collection with a url field to store all your external URL’s and reference them to your stores database collection and then check the current product being viewed on the product page and then link the button to the url field of that item in your referenced collections.

I think a simpler solution would be to create your own product page using dynamic pages , displaying your products with the stores collection and then trying to set the link on the button based on the item being displayed.

Have you looked into maybe using the getCurrentItem() or wixdata query() ? What have you tried so far?

Haven’t tried those yet, I’m new to Wix for business…wixdata query was suggested to me as a solution but I really don’t have a clue how to start to implement it…