#Product Variants Dont Go Out of Stock
21 messages · Page 1 of 1 (latest)
Hmmm. Almost impossible. Are you using the next.js starter?
Also check in your variant settings if your have checked Manage inventory and Allow backorders
im using the multivendor marketplace extension
allow backorders is disabled
and after an order is created I have the seller use the create fufillment api endpoint to finish the flow
but the product continues to exist on the store homepage
The inventory should be subtracted on order creation, not fulfillment.
Are you using the next.js starter?
An adapted version
In the next.js starter the inventory is fetched client side on product page load
The product will exist, because it's statically generated on page
It's the variant inventory that will be subtracted
hmm if i check the database tables the inventory doesnt change even if the product is ordered
I'm not famliar with the marketplace extension. Do you have manage inventory checked?
where would that be checked?
in variant settings in admin
oh i havnt used admin
the flow is done through nextjs so the code uses the api endpoints to create the medusa flow
The variant needs to have Manage inventory checked