Updated cart update function to allow for user-supplied price