WooCommerce - Recover Abandoned Carts

 

 

Download the Plugin

Overview

In this tutorial, you'll learn how to:

Before getting started

Prior to creating an abandoned cart workflow, make sure that:

1. Create an abandoned cart email template

First, log into your SendinBlue account then go to the Automation platform > Email Templates. Click on the New Template button at the top right.

As an example, you can use the following template.

prestashop_abandoned_cart_template.png

Simply go to the “Import a template” tab then paste this URL: 

https://my.sendinblue.com/NfoWn4SIftNqpAJdzszU.7a9gZsuXPDIPpJX0fHfvi1_wZmRDyaFGf4omw--

Click on “Import”. You will then have a drag & drop template to work from.

The email template can be personalized with several types of data:

Personalize your email with contact attributes

Let's start by personalizing with contact attributes.

In the example below, we have included a personalization of:

  • the recipient's first name using {{ contact.FIRSTNAME }}
  • the recipient's last name using {{ contact.LASTNAME }}

Good to know: FIRSTNAME and LASTNAME should be existing attributes in your SendinBlue account.

1.WooCommerce_abandoned_cart_attribute_personnalization.gif

Now let's personalize the email template with order variables such as the name of the items left behind, their images, price etc. To do so, we'll use the New Template Language to insert a dynamic list.

Personalize your email with the abandoned items details

The following variables may be included directly from a dynamic list within your SendinBlue template content:
 
Items data Insert this placeholder in your template
Name {{ item.name }}
SKU {{ item.sku }}
Category {{ item.category }}
ID {{ item.id }}
Name of the product variation (values are separated by commas if there are several) {{ item.variant_name }}
ID of the product variation {{ item.variant_id }}
Price {{ item.price }}
Quantity {{ item.quantity }}
Storefront link of the purchased item {{ item.url }}
Image {{ item.image }}

 

In the Drag & Drop Editor, select your desired block that will display the abandoned items.

  1. Click the pencil icon to edit the settings for the design block.
  2. Enable the dynamic list option.
  3. In the parameter field, write items.
  4. In the variable field, write item.
  5. Set the limit for the number of items that will be displayed. For example, if there are 5 items left in the cart, and you set 3 as the limit, only 3 items will be shown in the email.

2.WooCommerce_abandoned_cart_items.png

Now add the variables to your email template. In the example above, we have added:

  • {{ item.name }} - The name of the item
  • {{ item.quantity }} - The quantity of the item
  • {{ item.price }} - The price of the item

To add the link of the item, select the Call-To-Action (CTA) button. On the right sidebar, under Link, type {{ item.url }}.

3.WooCommerce_abandoned_cart_item.png

To add the image of the item, select the image. On the right sidebar, under Image source, choose "From URL" then type {{ item.image }}.

4.WooCommerce_abandoned_cart_item.image.png

Personalize your email with the abandoned cart details

The following variables may be included directly within your SendinBlue template content:

Cart details Insert this placeholder
Store's name {{ params.affiliation }}
Currency {{ params.currency }}
Discount {{ params.discount }}
Shipping {{ params.shipping }}
Subtotal {{ params.subtotal }}
Tax {{ params.tax }}
Total before tax {{ params.total_before_tax }}
Total {{ params.total }}
Link to cart {{ params.url }} 
Link to checkout page (if applicable) {{ params.checkouturl }}

 

Good to know:  Items shown in the link to cart page will be different based on where the session is opened from. For example, let's say a customer is browsing from their laptop. If they click on the abandoned cart email from their phone, it will not show their abandoned cart.

In the Drag & Drop Editor, select your desired block that will display the abandoned cart information then add the order variables you want.

We recommend formatting numbers by using floatformat. In the example below, we have added:

  • {{ params.currency }} - The currency of the abandoned cart
  • {{ params.subtotal | floatformat: 2 }} - The subtotal of the abandoned cart
  • {{ params.discount | floatformat: 2 }} - The discount of the abandoned cart
  • {{ params.total | floatformat: 2 }} - The total of the abandoned cart

5.WooCommerce_abandoned_cart_cart.png

To add the link of the abandoned cart, select the Call-To-Action (CTA) button. On the right sidebar, under Link, type {{ params.url }}.

6.WooCommerce_abandoned_cart_url.png

Once your design is complete, click the green "Save & Quit" button. Then click the "Save & Activate" button.

2. Creating the abandoned cart workflow

Good to know: A customer has to be identified by their email address to trigger the workflow, i.e. a customer who has logged into their account on your BigCommerce store or input their email address during checkout.

Navigate to the Automation tab of your SendinBlue account.

Click on + CREATE A NEW WORKFLOW, then select "Abandoned Cart" and follow the steps.

blobid0.png

At the "Send an email" step, select the email template you have just created and activated from the dropdown list.

When your workflow is complete, click on DONE to save and activate it.

Feel free to read this tutorial to help you creating the workflow: Recovering abandoned carts: automatically send the emails (step 3).

3. Example

Let's say that customer John Smith john.smith@sendinblue.com has visited your store but the following 3 items have been left in the cart.

8.WooCommerce_abandoned_cart_cart_preview.png

Your template will look like this.

9.WooCommerce_abandoned_cart_template.png

The email received by Jean Blue jean.blue@sendinblue.com will look like this.

10.WooCommerce_abandoned_cart_email.png

Further reading

Have a question?

If you have a question, feel free to reach our support team at support@sendinblue.com.