Why does CreateOrder() clear the cart and what happens if you want to access cart again

Matthew Butler asked on October 14, 2022 15:47

I'm calling shoppingservice.createorder() before the payment page, this is clearing the cart, but if payment fails, I need to allow customer to go back and make changes to cart.

I'm assuming I need to create order to allow payment update status etc..

Recent Answers


Matthew Butler answered on October 14, 2022 16:05

Looks like I could use ShoppingCartInfoProvider.GetShoppingCartInfoFromOrder to reload the cart, but how do I set that to the current cart?

and if I do that an re-call shoppingservice.CreateOrder() it looks like it doesn't update the address if it's changed, is that correct? What options do I have to update address?

0 votesVote for this answer Mark as a Correct answer

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