Originally reported by: Josh Berry (Bitbucket: joshberry, GitHub: joshberry)
Items in the shopping cart remain after completing the checkout process. I would typically expect the cart to be cleared after checkout. Is this by design?
I'm looking at how to clear the cart on checkout and it appears I'll need to add a method to IShoppingCartStorage to remove them from session state and clear them from localStorage as well. Any suggestions on the best way/place to do this? Are there existing hooks I'm missing?
Original comment byBertrand Le Roy (Bitbucket: bleroy, GitHub: bleroy):
Not by design, just never got around to implementing it. There is a client-side component to this however. I'd script something from the order completion page.
Originally reported by: Josh Berry (Bitbucket: joshberry, GitHub: joshberry)
Items in the shopping cart remain after completing the checkout process. I would typically expect the cart to be cleared after checkout. Is this by design?
I'm looking at how to clear the cart on checkout and it appears I'll need to add a method to IShoppingCartStorage to remove them from session state and clear them from localStorage as well. Any suggestions on the best way/place to do this? Are there existing hooks I'm missing?