bleroy / Nwazet.Commerce

Idiomatic commerce module for Orchard CMS.
BSD 3-Clause "New" or "Revised" License
26 stars 21 forks source link

Shopping cart not being cleared after checkout #29

Closed bleroy closed 8 years ago

bleroy commented 10 years ago

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?


bleroy commented 10 years ago

Original comment by Bertrand 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.