getProductOptionsAvailability - Get Product ID

Maybe I’m missing something, but how do I get product’s ID?

The examples are missing fields:
this is the line for fetching product’s Id in the examples:

 let productId = // get product ID 
 

:Another related question - how can I get the product, I tried to use ‘getProduct()’ from the product page but it does not work:

Thanks,

Hi Amira,

Where did you find the documentation for getProduct(…)?
Can you paste link?

Thank you

https://www.wix.com/code/reference/$w.ProductPage.html#getProduct

Has someone managed to use getProduct()?

Thanks,

Seems a bit weird lately, I couldn’t getProduct as well.

Anyone solved it?