projectriff-demo / storefront

Front end app with shopping UI
Apache License 2.0
1 stars 1 forks source link

Clear localstorage on close #16

Closed jldec closed 4 years ago

jldec commented 4 years ago

It would be better to delete the localstorage cart items when the storefront window is closed so that they don't re-appear if you run another demo using the same browser.

fbiville commented 4 years ago

Is it still an issue now that the Confirm order button clears the cart at the end of the "customer journey"? If so, then we might as well get rid of local storage entirely and rely on simple temporary cookies.

jldec commented 4 years ago

Agree, no longer needed