/
Cart Abandonment using ShopMagic

Cart Abandonment using ShopMagic

The WooCommerce Maileon plugin supports recovering abandoned carts using ShopMagic and ShopMagic Abandoned Carts. To use this functionality please download these plugins first.

For general information about setting up ShopMagic please review this article.

Creating an abandoned cart transaction in Maileon

After you have successfully installed the plugins above and the latest version of WooCommerce Maileon you can create a cart recovery flow.

First navigate to Automations in ShopMagic settings and click the Add new button:

Specify the name of the new automation and select the Abandoned Cart event:

Click the + New Action button in the actions area and select Send Maileon transaction as your new action:

Enter the name of the transaction you wish to use in Maileon. The transaction type will be created if it doesn’t exist yet. It is recommended to chose a name that doesn’t exists in Maileon yet to ensure that it will contain the correct attributes.

After specifying a name for your transaction you can go ahead and Publish your new automation.

After publishing the automation you will have the ability to send a test transaction. (This function is only available if your shop already has some previous orders.) If you would like to send a test transaction click the Send test link next to your previously created Send Maileon transaction action:

Abandoned Cart Transaction Attributes Overview

Property

Description

Example

Property

Description

Example

cart.id

The ShopMagic cart id

“1234”

cart.date

The time the cart was created at

“2021-05-07 13:37:00”

cart.total_no_shipping

The cart total without shipping

22.5

cart.total

The cart total

23.0

cart.product_ids

A comma separated list of product ids

“15,14,32”

cart.currency

The currency of the cart

“EUR”

cart.categories

A comma separated list of product category IDs

“12,3”

cart.items

An array of products

See below

cart.link

A link for restoring the cart

“http://example.com/shop/?action=cart-restore&token=9015b5f462e8335aec78006d4d57c88a&hash=c3feac9d17ca9d0a2cf49a64a3cb8a87”

customer.firstname

The first name of the customer

“Max”

customer.lastname

The last name of the customer

“Mustermann”

customer.id

The customer id

“1”

customer.fullname

The full name of the customer

“Max Mustermann”

Cart Items

Property

Description

Example

Property

Description

Example

sku

The SKU of the product

“woo-example-item”

product_id

The ID of the product

12

title

The name of the product

“An Example Product”

description

The full description of the product

“This is a much longer description.”

short_description

The short description of the product

“Short description”

url

The public url of the product

http://example.com/shop/example-product”

image_url

The public image url of the product

http://example.com/shop/example-product.jpg”

status

The stock status of the product

“instock”

single_price

The single price of the product

10.5

categories

The comma separated category ids of the product

“12,3”

width

The width of the product

123

height

The height of the product

123

weight

The weight of the product

1000

attributes

The attributes of the product as a JSON object

{“pa_color”: [“red”]}

quantity

The quantity of the product

2

total

The line total of the product

21.0

 

Related content