Add setCartByUser for shared cart.