APIs & Integrations

ssj
Participant

How can we create Abandoned cart email?

SOLVE

Hi,

I have created CONTACT,PRODUCT,DEAL,LINE ITEMS using ecommerce bridge. Now I want to create email to send to all abandoned cart customers. How  can I ahieve this?


Please help me to solve this.

0 Upvotes
1 Accepted solution
jackcoldrick
Solution
HubSpot Employee
HubSpot Employee

How can we create Abandoned cart email?

SOLVE

Hi @ssj,

 

When you install the eCommerce Bridge there are a number of email templates that will be created within the design manager.

 

They are located in a folder called "Ecommerce". One of the templates should be called "Vast Ecommerce Abandoned Cart Email 1". Within this email you should see a module called "Cart summary". This contains some special HubL code which can be used to loop through the deals associated line items. It looks like this:

 

<h2 style="margin-top: 20px;">Abandoned cart summary</h2>
<div class="order-summary">
    {% email_each list="deal.line_items" item="line_item" %}
        <table class="templateColumnWrapper" cellpadding="10" style="margin-top: 20px;">
            <tbody>
                <tr>
                    <td class="column" style="vertical-align: middle;">
                        <img src="{{line_item.ip__ecomm_bridge__product_image}}" width="130" style="max-width: 130px;">
                    </td>
                    <td class="column summary" style="vertical-align: top;">
                        {{ module.order_summary }}
                    </td>
                </tr>
            </tbody>
        </table>
    {% endemail_each %}
</div>

 

The actual personalization looks like this "{{ line_item.PROPERTY_NAME }}". By default the module will output the below:

 

{{line_item.name}}
{{line_item.description}}
{{line_item.quantity}} @ {{line_item.amount}}

You are free to create your own version of this module and leverage it within your own templates. It's important to note that it will only work if you are sending the email from a deal based workflow.

 

Regards,

Jack

Jack Coldrick
Solutions Engineer @ HubSpot
Add me on LinkedIn

View solution in original post

1 Reply 1
jackcoldrick
Solution
HubSpot Employee
HubSpot Employee

How can we create Abandoned cart email?

SOLVE

Hi @ssj,

 

When you install the eCommerce Bridge there are a number of email templates that will be created within the design manager.

 

They are located in a folder called "Ecommerce". One of the templates should be called "Vast Ecommerce Abandoned Cart Email 1". Within this email you should see a module called "Cart summary". This contains some special HubL code which can be used to loop through the deals associated line items. It looks like this:

 

<h2 style="margin-top: 20px;">Abandoned cart summary</h2>
<div class="order-summary">
    {% email_each list="deal.line_items" item="line_item" %}
        <table class="templateColumnWrapper" cellpadding="10" style="margin-top: 20px;">
            <tbody>
                <tr>
                    <td class="column" style="vertical-align: middle;">
                        <img src="{{line_item.ip__ecomm_bridge__product_image}}" width="130" style="max-width: 130px;">
                    </td>
                    <td class="column summary" style="vertical-align: top;">
                        {{ module.order_summary }}
                    </td>
                </tr>
            </tbody>
        </table>
    {% endemail_each %}
</div>

 

The actual personalization looks like this "{{ line_item.PROPERTY_NAME }}". By default the module will output the below:

 

{{line_item.name}}
{{line_item.description}}
{{line_item.quantity}} @ {{line_item.amount}}

You are free to create your own version of this module and leverage it within your own templates. It's important to note that it will only work if you are sending the email from a deal based workflow.

 

Regards,

Jack

Jack Coldrick
Solutions Engineer @ HubSpot
Add me on LinkedIn