Shopping Cart doesn't work

Final Code Will be

$w('#shoppingCartIcon1').addToCart([{"productId":"d906a576-3ddf-f4da-01ec-9529ed6a0297","quantity":1},{"productId":"df19c1f7-07d8-a265-42f8-e8dfa824cc6e","quantity":1}]).then(()=>{     console.log("Products added");}).catch((error)=>{     console.log(error);});