add shopping cart update function