TransWikia.com

Adjust item stock accordingly to checkout carts

Craft CMS Asked by Bram B on June 14, 2021

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?

One 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.

Correct answer by Bram B on June 14, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP