Virto 3: Anonymous cart


I’m trying to create an anonymous cart in Virto 3, however I keep getting “CustomerId cannot be null”, what should I do here to create one not tied to a customer?

Set CustomerId to a randomly generated UUID.
Also save this UUID into cookies, to provide ability working with cart during the browser session.

1 Like