We just moved from workflows to using SeriliazableCarts and after the upgrade the inventory is not reduced. If I have 28 and buys one item there is still 28 left.
var orderReference = _orderRepository.SaveAsPurchaseOrder(cart);
Just like the Quicksilver example. Should this be enough or do I have do something else?
Just to make sure, how do you know there are still 28 left?
I look under the Inventory tab for the current variant.
There are several places you can look at
Were the values in database (InventoryService table) updated?
Do you have the SKU to be tracked, and that specific warehouse to be tracked? The inventory will only be reserved if both of them are true.
Ok. The SKU is set to IsTracked = 1, how can I check to warehouse setting?The value in the InventoryService table was not updated.
In the inventory tab in Catalog UI, the last column
Ok, Is Tracked is checked but not the checkbox "Tracked" just above the line in your picture. I guess that is the one missing?
The tracked checkbox above is at SKU level, so yes, you'd need that
Michael, feel free to create a new thread.
I don't think it's an error. It's just a warning you can safely ignore. Even better, you can download the workflow project, modify it to remove the inventory checking/requesting part completely.
Ok thanks, yes I guess that's an option then. I tried providing some params to the work flow (namely "ShouldIgnoreAdjustInventory") which I thought would do it but doesn't.