I have been using this and this page to add in review recording and displaying for individual dynamic pages on my website, however I can’t see what I need to replace ‘ProductPage1’ with and potentially the request .getProduct() with to make the below bit of code work. I have dynamic pages for each of my items, but it is just a list rather than a product/store page.
let name;
let image;
$w(‘#startReview’).onClick((event) => {
$w.onReady(function () {
$w('#productPage1').getProduct()
.then((product) => {
id = product._id;
name = product.name;
image = product.mainMedia;