Display a user’s shopping cart using custom HTML

You can make your email campaigns even more appealing by displaying the products in a user's shopping cart. Connect your website to our platform and then use HTML code to display the products last added to a shopping cart, or the products last purchased by the customer inside your email marketing campaigns.

A. The HTML code

Using the code below you can add product tags such as the unique product code, the product title, the product's image URL, its price, the URL of the product page, the product category, and the product manufacturer or brand name. All information from the product tags will be repeatedly displayed for each product.

#product:code#  <!-- A unique code for the product, e.g. COW-T-SHIRT  -->
#product:title# <!-- The name/title of this product, e.g. Cow T-Shirt -->
#product:image# <!-- The image URL of this product, e.g. -->
#product:price# <!-- The price of this product, e.g. 12.02 -->
#product:url#   <!-- The URL to the relevant product page, e.g. -->
#product:category# <!-- the category of this product, e.g. T-Shirts -->
#product:manufacturer# <!--the manufacturer, brand name of this product, e.g. Acme Co -->

In the top navigation bar, click Account_icon.png and click Websites.NEWIntegration.png

When you are inside your website list, you can find your website ID by clicking on the website. If no website ID is provided on your HTML code, then the information displayed will be taken from the website listed at the top of your Websites list.
Replace size with the number of products to be displayed on the dispatched email e.g.


If no number is provided, the maximum number is displayed, which is 10. You can also use zero (0) if you wish to display the maximum number.
B. HTML code examples

  1. The following example will fetch the last 5 items on the recipient's cart, from your website with ID d61a0b5a62a44343.
  2. In this example we have omitted the size parameter altogether; this will fetch the maximum number of items on the cart (10), from your website with ID d61a0b5a62a44343.
  3. In the example below, omitting the website parameter will fetch the last 5 items of the recipient's cart, from the first activated website listed on your Websites list.

Note: You can further expand your email campaign's content by displaying your your top products by number of orders, or your top products by views, using equally simple HTML code. But you cannot have more than one case of the ones described above in your campaign (products by order, top products by revenue, top products by views, displaying the user's shopping cart).