remove call to setCookie in cartTrait