Syncing Cart Items
This article will help you to sync your customer's cart items with Growlytics.
Last updated
Was this helpful?
This article will help you to sync your customer's cart items with Growlytics.
Last updated
Was this helpful?
Was this helpful?
// Sync Cart with Growlytics
Growlytics.cart.sync({
id: '---cart id of your system goes here--',
amount: 123, // Total cart amount goes here,
url: 'https://myapp.com/checkout/123324', // Abandoned Cart URL
items:[ // List of cart items
{
id: '--product id goes here--',
name: '--product name goes here--',
variant: '--product variant name goes here--',
image: '--product goes here--',
price: '--product price goes here',
originalPrice: '--product original price - to show discount in emails',
quantity: 2, // Number of products in cart
notes: '--notes to show with cart items in email--'
}
]
})