update function for shopping cart service