Update the item into cart when modifing it (solved TODO).