Getting the selected product option in product page API

If you are using the .addToCart() function on the WIX-Stores API, then you need to provide an object with the choices, for example:

let options = {
  "choices": {
    Color: dropdownColor.value,
    Size: dropdownSize.value
  }
}
$w('#shoppingCartIcon').addToCart(productId, inputQtd, options)