How to generate a link of the customers cart
ShareCart is a checkout feature that allows a user to share the link of their cart.
- Sharing occurs through a link generated when the user clicks on the corresponding icon on the screen.
- The receiver of the link can access the cart with all the data filled out.
The sharing component will always be displayed for callCenterOperator type users, regardless of the value of the shareCart flag.
{
props: {
flags: {
shareCart: boolean | string;
}
}
}
Enabling the share cart feature to a specific type of customer
it is also possible to make the feature visible only to a specific type of customer. In order for this to happen we leverage the customerClass
field of the VTEX Master Data.
{
props: {
flags: {
shareCart: vipCustomer;
}
}
}
Updated about 15 hours ago