Fix for #290

Fix for #290 
- persist data after clearing the cart.

@settinghead please review.