Updates hash in cart.rb