<p>Commerce (as at V2) has basic stock handling that will do exactly what you mention - for each product you can set a stock level (alternatively, you can set it to unlimited stock if you wish).  When orders are completed stock is debited by the amount sold (note stock is not debited when items are added to carts - which is good, because it means you don't have to deal with not being able to sell things that are locked up in stale carts). </p>

<p>Commerce will not let you sell out of stock items, and there are template tests you can use to display the stock state in any way you choose (be careful with caching in this area!).</p>

<p>Note that the stock handling is fairly simplistic - e.g. I am pretty sure that there is no automatic return handling (so if you e.g. cancel/refund an order, it won't automatically add the stock back).</p>

<p>If you need stock handling beyond this then you would need to look at building a plugin specific for you needs (or one that integrates a sophisticated inventory handling system).  </p>

CC BY-SA 4.0
2019-10-03T23:36:36.043Z
Thanks, Jeremy. I could not find anything in the docs, so appreciate your response!
Roi Agneta
CC BY-SA 4.0
2019-10-08T01:53:25.377Z
Thanks, perhaps accept the answer then?
Jeremy Daalder
CC BY-SA 4.0
2019-10-03T00:17:09.130Z
2019-10-03T00:17:09.130Z
Jeremy Daalder
<p>I am putting together a proposal for an eCommerce site - one of the (obvious) requirements is inventory management. I do not see anything specific in the Commerce 2 docs. Basically, want to enter stock levels for each product and then have that number change as orders are placed. Is that possible or does it require  a plug-in?</p>

<p>Thanks! </p>

<plugin-craftcommerce><order><stock>
Stock Levels for Commerce 2
# Stock Levels for Commerce 2

(Asked by: username_0 on 2019-10-02)

I am putting together a proposal for an eCommerce site - one of the (obvious) requirements is inventory management. I do not see anything specific in the Commerce 2 docs. Basically, want to enter stock levels for each product and then have that number change as orders are placed. Is that possible or does it require a plug-in?

Thanks!

**Tags:** plugin-craftcommerce, order, stock

---

## 1 answers

### Answer by username_1 on 2019-10-03. Score: 1 | Accepted answer

Commerce (as at V2) has basic stock handling that will do exactly what you mention - for each product you can set a stock level (alternatively, you can set it to unlimited stock if you wish). When orders are completed stock is debited by the amount sold (note stock is not debited when items are added to carts - which is good, because it means you don't have to deal with not being able to sell things that are locked up in stale carts).

Commerce will not let you sell out of stock items, and there are template tests you can use to display the stock state in any way you choose (be careful with caching in this area!).

Note that the stock handling is fairly simplistic - e.g. I am pretty sure that there is no automatic return handling (so if you e.g. cancel/refund an order, it won't automatically add the stock back).

If you need stock handling beyond this then you would need to look at building a plugin specific for you needs (or one that integrates a sophisticated inventory handling system).

> **Comments:**
> **username_0**: Thanks, Jeremy. I could not find anything in the docs, so appreciate your response!  
> **username_1**: Thanks, perhaps accept the answer then?  

---

