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’.