vercel / commerce

Next.js Commerce
https://demo.vercel.store
MIT License
11.48k stars 4.24k forks source link

It's possible to add to cart unavailable items on demo #1235

Closed gbonumore closed 1 year ago

gbonumore commented 1 year ago

On the demo, even if the T-Shirt color "White" and size "L" is not selectable through the UI, creating a URL in order to select this combination like: https://demo.vercel.store/product/acme-geometric-circles-t-shirt?image=1&color=White&size=L results in the possibility to add this item to cart, looks like there is no initial check on combination availability.

leerob commented 1 year ago

Open to a community PR to address this if you want 😄