Abandoned Cart Service
This app can be used to trigger abandoned cart emails.
App installation
To use it in your account, you can run the vtex install vtex.abandoned-cart-service
command or install it from the Admin, accessing Apps -> Apps Store -> All Apps -> Abandoned Cart Service.
VTEX IO stores configuration
To configure the functionality and use of the abandoned cart app in VTEX IO stores, follow the steps described in Configuration for VTEX IO stores, using the message center and trigger configuration information available below.
Message Center information
To configure the template, access the Message Center (https://{{account}}.myvtex.com/admin/message-center/#/templates).
To provide a preview of what the email might look like, a JSON Data example (similar to the one shown below) is available in the JSON Data field of the Message Center. This information should not be saved or used in the email template.
{
"email": "[email protected]",
"items": [
{
"id": "1",
"productName": "product1",
"image": "https://{{account}}.vteximg.com.br/arquivos/ids/155411/image1.jpg",
"sellingPrice": 4100,
"quantity": "1",
"link": "product-one"
},
{
"id": "2",
"productName": "product2",
"image": "https://{{account}}.vteximg.com.br/arquivos/ids/155403/image2.jpg",
"sellingPrice": 3199,
"quantity": "1",
"link": "product-two"
}
],
"addToCartURL": "add?sku=1&qty=1&seller=1&sku=2&qty=1&seller=1"
}
JSON Data field
Trigger configuration information
During the Trigger configuration procedure, specifically in Step 11 (tab If positive), you should select Send an HTTP Request and add the following information in the fields:
- URL: https://{{account}}.myvtex.com/_v/abandoned-cart.
- Method: POST.
- Header:
Name: content-type / Value: application/json
Name: accept / Value: application/json - Content as JSON field:
{
"email": "{!email}",
"skuURL": "{!rclastcart}",
"template": "abandoned-cart",
"additionalFields": { // In object you can add any additional field to send in the mail
"firstName": "{!firstName}"
}
}
Master Data (If positive tab):
The template information in the Content as JSON field above must be filled in with the same template ID configured in the message center.
Template information in Master data:
Template ID in Message Center:
Updated about 1 month ago