<p>Well I made a workaround, I'm going to use Custom Order Status to manage "in stock" and "pending in cart" and get both the values and make a calculation that will be put in the "stock" value displaying in the front. </p>

CC BY-SA 4.0
2021-04-15T21:23:41.660Z
Will you happen to have a technical example of this? It’s an interesting answer, only if you could give an example it would be great!
Johanna Maldonado
CC BY-SA 3.0
2016-09-27T14:11:20.903Z
2016-09-27T17:23:56.433Z
2016-09-27T17:23:56.433Z
Bram B
<p>So in Craft Commerce, we have stock items. What I want is to display items in stock, but adjust it to active checkout charts containing those items.</p>

<p>(only when an active had a checkout or being disband stock must correct itself)</p>

<p>How would it be possible to implement such a thing?</p>

<plugin-craftcommerce>
Adjust item stock accordingly to checkout carts
# Adjust item stock accordingly to checkout carts

(Asked by: username_0 on 2016-09-27)

So in Craft Commerce, we have stock items. What I want is to display items in stock, but adjust it to active checkout charts containing those items.

(only when an active had a checkout or being disband stock must correct itself)

How would it be possible to implement such a thing?

**Tags:** plugin-craftcommerce


---

## 1 answers

### Answer by username_0 on 2016-09-27. Score: 1 | Accepted answer

Well I made a workaround, I'm going to use Custom Order Status to manage "in stock" and "pending in cart" and get both the values and make a calculation that will be put in the "stock" value displaying in the front.

> **Comments:**
> **username_1**: Will you happen to have a technical example of this? It’s an interesting answer, only if you could give an example it would be great!  

---

