I have created a database and corresponding dynamic pages to go along with it. Both, for a gallery and for single products. However, in the gallery I have not been able to establish specific connections (links) between specific products and specific product pages. i.e. “M Series” on the gallery to the “M Series” specific dynamic page. How can I do that? Any feedback would be greatly appreciated. I’m including a copy of both, the product gallery and the specific product dynamic page for your reference. You will see that if you click any other item after the first one, the wrong product loads:
https://dsignandprint.wixsite.com/lmedes/complex-rehab-all-products
https://dsignandprint.wixsite.com/lmedes/complexrehab/single-product/Complex-Rehab
When a user clicks the element inside the repeater that should link then use the code below to get the item they clicked on and then use wixLocation.to and the clicked items link url.
export function repeaterButton_click(event, $w) {
// Get clicked item
let currentItem = $w(“#dataset1”).getCurrentItem();
wixLocation.to(currentItem[‘fieldkey-of-dynamic-url-field’])
}