#Product Variants Dont Go Out of Stock

21 messages · Page 1 of 1 (latest)

weary niche
#

When a product is fulfilled it still is visible on the main store.

viscid forum
#

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

weary niche
#

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

viscid forum
#

The inventory should be subtracted on order creation, not fulfillment.

#

Are you using the next.js starter?

weary niche
#

An adapted version

viscid forum
#

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

weary niche
#

hmm if i check the database tables the inventory doesnt change even if the product is ordered

viscid forum
#

I'm not famliar with the marketplace extension. Do you have manage inventory checked?

weary niche
#

where would that be checked?

viscid forum
#

in variant settings in admin

weary niche
#

oh i havnt used admin

viscid forum
weary niche
#

the flow is done through nextjs so the code uses the api endpoints to create the medusa flow

viscid forum
#

The variant needs to have Manage inventory checked