The specified version of the app (3.x.0) does not exist. This page is about the latest stable version, which is 3.1.0.
This app can be used to trigger abandoned cart emails.
Usage
To use it in your account, run the vtex install vtex.abandoned-cart-service
command.
You should follow the documentation to Setting up Cart Abandonment (Trigger) but in the Action tab you should select Send an HTTP Request with the follow configuration:
- The URL field is https://{{account}}.myvtex.com/_v/abandoned-cart.
- Method field is POST.
- Header fields:
- content-type: application/json
- accept: application/json
- Content as JSON field:
_10 {_10 "email": "{!email}",_10 "skuURL": "{!rclastcart}",_10 "template": "abandoned-cart",_10 "additionalFields": { // In object you can add any additional field to send in the mail_10 "firstName": "{!firstName}"_10 } _10 }
The template field in the JSON above depends on the template id configured in the message center
Aditionally to the trigger configuration, you must create the message center template in https://{{account}}.myvtex.com/admin/message-center/#/templates, and you can use the next JSON to you to build the new template.
_22{_22 "email": "test@test.com",_22 "items": [_22 {_22 "id": "1",_22 "productName": "product1",_22 "image": "https://{{account}}.vteximg.com.br/arquivos/ids/155411/image1.jpg",_22 "sellingPrice": 4100,_22 "quantity": "1",_22 "link": "product-one"_22 },_22 {_22 "id": "2",_22 "productName": "product2",_22 "image": "https://{{account}}.vteximg.com.br/arquivos/ids/155403/image2.jpg",_22 "sellingPrice": 3199,_22 "quantity": "1",_22 "link": "product-two"_22 }_22 ],_22 "addToCartURL": "add?sku=1&qty=1&seller=1&sku=2&qty=1&seller=1"_22}