How do you do Order Validation once order created? as cart stock check against allocated stock

Matthew Butler asked on October 17, 2022 13:06

The order validation uses the cart validation, which work ok prior to order creation, but once the order is created the validation for stock doesn't take into consideration the stock allocated by the order its self.

Whats the intended use? how do you revalidate once created?

So it looks like the validation check against order item units, but the problem is create order doesn't associate the order item with the cart item. It only works for carts created with GetShoppingCartInfoFromOrder

Thanks

Mat

Recent Answers


Matthew Butler answered on October 17, 2022 13:12 (last edited on October 17, 2022 14:42)

So it looks like the validation check against order item units, but the problem is create order doesn't associate the order item with the cart item. It only works for carts created with GetShoppingCartInfoFromOrder

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.