How to not allow ordering more than the available quantity when 'Continue selling when sold out'

Topic summary

Goal: prevent customers from ordering more than in‑stock units while “Continue selling when sold out” is enabled, or at least reflect mixed availability in the cart.

Current behavior: a product with 4 units available can be added to the cart in quantities >4, and the cart labels the entire quantity as “In Store,” which is inaccurate.

Desired behavior:

  • Either temporarily cap purchasable quantity at the in‑stock amount until automation runs, or
  • Split the cart line to show 4 as “In Store” and the remainder as “Backorder.”

Existing setup: an automated flow switches the product template and applies a “Backorder” tag when stock reaches 0.

Status: no solution provided yet; request seeks methods to limit ordering or display split availability in cart.

Summarized with AI on December 30. AI used: gpt-5.

Hello all!

Is there a way to stop orders from being placed more than the available quantity temporarily so my automated flow can run or at least show the same item under different status (Backorder & In Store) in the cart?

E.g. I have item A that has quantity of 4 available in store and any more than that will go under Backorder.

The issue I have right now is that I can add more than 4 available in the cart and it will show all as In Store, even though that’s not the case.

What I would like is to show in the cart is 4 as In Store, and the remaining quantity as Backorder.

My automated flow is set to switch the product template and product tag to backorder when stock is 0.