Moves setCartName function.