           .success(@load)
 
     removeItem: (item) ->
-      i = @items.indexOf item
-      @items.splice(i, 1) unless i is -1
+      order = service.current
+      i = order.items.indexOf item
+      order.items.splice(i, 1) unless i is -1
       @updateItemQuantity item.variant.id, 0
 
     changeItemQuantity: (item, delta) ->

    current: new Sprangular.Order

    reload: ->
      service.current.clear()

      $http.get '/api/cart.json'
        .success(@load)



        order.items.push(variant: variant, quantity: item.quantity, price: item.price)

      order

    empty: ->
      $http.delete '/api/cart'
        .success(@load)

    addVariant: (variant, quantity) ->
      foundProducts = @findVariant(variant.id)

      if foundProducts.length > 0
        @changeItemQuantity(foundProducts[0], quantity)
