Im having trouble setting up the getProduct() function.
My code is very simple:
$w.onReady(async function () {
let product = await $w('#productPage1').getProduct();
});
and I’m getting the following error on the logs:
TypeError: $w('#productPage1').getProduct is not a function. (In '$w('#productPage1').getProduct()', '$w('#productPage1').getProduct' is undefined)
Any ideas? My Product Page ID is definitely ‘#productPage1’.