[
]
changing inventory mode to Track only, tax mode to Platform
[
]
changing inventory mode to Track only, tax mode to Platform
On
-For this inventory must be added.
-You can call inventory api and reduce the quantity which ever quantity has been ordered using line_item_id.
-It will be reflect in inventory section.
-Always check quantity on checkout page while placing an order for every product for that you can create one function which will give you product data with available quantity and you can check that with availability value.
The cart must have inventoryMode set to TrackOnly or ReserveOnOrder. You can find more details in the documentation below.
https://docs.commercetools.com/api/projects/carts#cart https://docs.commercetools.com/api/projects/carts#inventorymode