Using getProduct ()

Hello there , I want to use the getProduct () code in the web site I am writing, but I am having problems.

$w(‘#productPage1’). getProduct() .then( (product) => { let productName = product.name; let productDescription = product.description; // see example product object below } ) .catch( (error) => { console.log(error); } );

When I write the getProduct () code in the above code, I get the error ‘getProduct’ does not exist on ‘# productPage1’.

Hi,
There’s an issue on our end with this function. Even though it displays a red error, it works fine. Make sure that you choose the correct ID.

Best,
Tal.