SpreeStore.module('Checkout',function(Checkout, SpreeStore, Backbone,Marionette,$,_){
  Checkout.Controller = {
    show: function(state) {
      SpreeStore.noSidebar()
      order = new SpreeStore.Models.Order({ number: SpreeStore.current_order_id })
      order.fetch({
        data: $.param({ order_token: SpreeStore.current_order_token}),
        success: function(order) {
          if (order.attributes.state == "complete") {
            SpreeStore.navigate("/orders/" + order.attributes.number, true)
          } else {
            Checkout.Controller.renderFor(order, state)
          }
        }
      })
    },

    renderFor: function(order, state) {
      state = state || order.attributes.state
      SpreeStore.navigate("/checkout/" + state)
      orderView = Checkout[state + 'View']
      if (orderView != undefined) {
        SpreeStore.mainRegion.show(new orderView({model: order}))
      } else {
        SpreeStore.navigate("/checkout/" + order.attributes.state)
        this.renderFor(order, order.attributes.state)
      }
    }
  }
})
@@ -421,24 +421,155 @@
 omplete%22) %7B%0A
+            window.localStorage.removeItem('current_order_id');%0A            window.localStorage.removeItem('current_order_token');%0A
             

Clear localStorage order variables when order is complete