Fix #1115 by updating cart_details as well.