updates before changing shopping cart