Hi,
We are trying to implement inventory control logic in live integration for a project. Whenever we sent the CalculateOrder request, NAV will check the available stock of the product and will send back the products which doesn't have enough inventory by using new xml format. for example: <table name="ErrorInOrder"><product tableName="ErrorInOrder"><column name="ProductID">PROD111</column><column name="AvailableStock">2</column><product></table>
1. If I get back the error xml, a.) I need to change the orderline which is having this productID with the available stock and recalculate the cart. And then b.) display message to the user at the front end about the inventory. For the frist step (a), I am able to do it from Live integration source but I am having problem to display the message to the user at the front-end. Kindly help me how I can display error message to the user at the front-end if I got error message in Live Integration code.
2. We are able to control the first step to update the order with the availble stock in most of the step but we are not able to stop the cart to send the order to checkout handler. I try to subscirbe to the notification Dynamicweb.Notifications.eCommerce.Cart.OrderIsPassedToCheckoutHandler but I can't find any code or sample documentation to stop the order to sent to the checkout. Kindly let me know if there is a way i can stop the cart to send the order to checkout procress.
Thanks.
HLT