Trigger Prev/Next buttons in Product Page

Hey Guys,
Is there a way to refresh the wix store product page when clicking on Prev/Next buttons?

I have connected a dataset with a text element on the page to display some content from a database according to the product. It works fine when we open the products from the store. But when go to other products using prev/next buttons it doesnt change.

Need to refresh the page when clicking on the Prev/Next buttons OR need to set a timer to refresh the dataset connection.

Advises are kindly appriciated
Thank you

#store #singleProduct #PrevNextButtons #WiXStore

Hi, I have a similar issue. Did you get a workaround to fix this?

Hi,

in the meantime I’ve manage to fix my problem.

I’ve managed to fix it by adding:

import wixLocation from ‘wix-location’ ;

wixLocation.onChange( (location) => { checkTastingNotes(); });

Everytime “Prev” on “Next” is pressed, onChange is executed.

Best Regards,