update:complete cart function