Skip to main content
When enabled, this feature displays a component in your checkout UI that lets the shopper copy a link to the current cart and share it.
Share Cart Component Pn
The generated link carries the id of the current cart, /new?cartId={{cartId}}. Opening it in another browser or session loads that cart.

Configuration

Share Cart is a custom prop of a Version.
  1. Open Versions → your version → Props Configuration
  2. Click + Add Prop
  3. Set Prop Name to shareCart, Type to JSON, and the value as below
  4. Click Add Prop, then Save Changes
Share Cart Props Pn
The Prop Name must be shareCart. The value is one object:
shareCart
With enabled set to true and no role, the share cart component is always visible, for every shopper.

Share Cart for a specific type of user

Often you want the feature only in specific situations, for example when someone from your support team is helping a customer, or when a B2B buyer is purchasing on behalf of someone else. Add a role to show it only to shoppers with that role:
shareCart
role is the user role required to see the share cart component.
If you use VTEX as your commerce provider, role should match the shopper’s customerClass.