0

Is this deliberate, or a bug? Delete an order and the products within the order don't have their stock updated again.

I'm only running Craft Commerce 1.2.1327 but I don't see any mention of it in the update notes to the current version so I'm not sure updating is the answer. I'm also cautious about updating at the moment in case it breaks my third-party payment gateway plugin.

  • AFAIK, Commerce has never updated stock levels when orders are deleted. – André Elvan Jan 11 '17 at 16:44
  • But it should do, right? – Clive Portman Jan 11 '17 at 16:49
  • Noo, I don't think so. Or, you could debate that in real life you'd most often increase the stock level if you delete an order, and therefore it should. But I think it's intentional from P&T's end that it doesn't. But, I might be wrong, hence just adding a comment. I'll let someone who knows for sure provide the answer. – André Elvan Jan 11 '17 at 19:40
  • Would be a pretty simple plugin to write though.. :) – André Elvan Jan 11 '17 at 19:41
0

Definitely deliberate. Inventory reduction when an order is placed is a "convenience" thing.

There are a million reasons why an order might be deleted and only a handful of them would have anything to do with inventory.

But as André points out... you could write a simple plugin to have whatever behavior you wanted around this.

|improve this answer|||||
  • Ok, thanks for the clarification. But, surely, when an order is deleted that stock generally goes back into circulation? Then again, I can think of a few examples where it wouldn't. – Clive Portman Jan 12 '17 at 8:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.