Landing Page Builder Integrations
The below code snippets outline how to trigger Cart Drawer events from your landing page builder, e.g. Replo.
window.cart.add(input: {
items: {
id: number | string;
quantity: number;
properties?: {
[T: string]: string;
};
selling_plan?: number;
}[];
attributes?: {
[T: string]: string;
};
}, boolean)window.cart.add({ items: [{
id: 12345678, // variant_id
quantity: 1
}]}, true)Last updated