saleor / storefront

Saleor Storefront built with React 18, Next.js 14, App Router, TypeScript, GraphQL, and Tailwind CSS.
https://storefront.saleor.io
BSD 3-Clause "New" or "Revised" License
1.01k stars 585 forks source link

The product is still Out Of Stock in a storefront, even if there is 1 item in each warehouse #1059

Open michalina-graczyk opened 9 months ago

michalina-graczyk commented 9 months ago

Summary

All described in steps

Steps to reproduce

  1. In the dashboard go to the product details page
  2. Go to the stock area and set the stock quantity to 1 for all warehouses
  3. Track inventory is NOT checked
  4. Save changes
  5. Go to the storefront and find that item

Result: The product is still Out Of Stock in a storefront, even if there is 1 item in each warehouse.

  1. Go back to the dashboard and click the 'track inventory' checkbox
  2. Save changes Result: The item is now available
  3. Add it to the card 3 times Current result: It is possible even if there is 1 item in the stock STF - tests.webm

A link to a reproduction repository

No response

Output from envinfo

dashboard: https://storefront1.saleor.cloud/dashboard/products/UHJvZHVjdDoxNDM%3D/variant/UHJvZHVjdFZhcmlhbnQ6Mzcw

stf: https://storefront-git-design-nudges-saleorcommerce.vercel.app/default-channel