Skip to main content
Solved

How to Add Tags for Injectable Abandoned Cart Data?

  • October 27, 2020
  • 2 replies
  • 1284 views

Forum|alt.badge.img+2

Hi everyone, where do I find the docs for injectable abandoned cart data like;

product image, product name, quantity, etc?

 

I found this, but it doesn’t give the abandoned cart tags.

https://www.klaviyo.com/docs/email-tags

 

I’m developing custom custom cart abandonment templates. Can’t complete the task without the tags.

Best answer by cassy.lee

Hi @awalters

Thanks for being a part of the Klaviyo Community. This is a great question! Have you had the chance to take a look at this article on event variables yet? I pasted it below too for easier access, but the article goes into more depth. This should be able to help you identify the appropriate tags for product image, product name and quantity under each platform. 

Thanks, 
-Cassy

 

BigCommerce
Product Name/Title {{ event.extra.line_items.0.product.name }}
Product URL {{ event.extra.items.0.product.url }}
Image {{ event.extra.items.0.product.images.0.src }}
Price for Product  {{ event.extra.line_items.0.product.price }
Quantity {{ event.extra.line_items.0.quantity }}
Total {{ event.extra.total_inc_tax }}
 

Magento 1

Magento 2

Product Name/Title

{{ event.extra.line_items.0.product.name }}

{{ event.extra.line_items.0.product.name }}

Product URL

{{ event.extra.line_items.0.product.key }}

{{ event.Items.0.Product.FullURL }}

Image

{{ event.extra.line_items.0.product.images.0.url }}

{{ event.extra.line_items.0.product.images.0.url }}

Price for Product 

{{ event.extra.items.0.base_original_price }}

{{ event.extra.line_items.0.product.price }}

Quantity

{{ event.extra.line_items.0.quantity }}

{{ event.extra.line_items.0.quantity }}

Total

{{ event.extra.base_grand_total }}

{{ event.extra.base_grand_total }}

Shopify
Product Name/Title {{ event.extra.line_items.0.product.title }}
Product Handle {{ event.extra.line_items.0.product.handle }}
Image {{ event.extra.line_items.0.product.images.0.src }}
Price for Product  {{ event.extra.line_items.0.line_price }}
Quantity {{ event.extra.line_items.0.quantity }}
Total {{ event.extra.customer.total_spent }}
WooCommerce*
Product Name/Title {{ event.extra.Items.0.Name }}
Product URL {{ event.extra.Items.0.URL }}
Image {{ event.extra.Items.0.Images.0.URL }}
Price for Product  {{ event.extra.Items.0.LineTotal }}
Quantity {{ event.extra.Items.0.Quantity }}
Total {{ event.extra.Items.0.TotalWithTax }}


*You can rebuild carts from an Abandoned Cart flow in WooCommerce by using the parameter ?wck_rebuild_cart={{ event.extra.CartRebuildKey }}. Cart rebuilding is also available for Shopify and Magento 1 integrations but is pre-generated in the default Abandoned Cart flows.

​​​

View original
Did this topic or the replies in the thread help you find an answer to your question?

2 replies

cassy.lee
Forum|alt.badge.img+9
  • Klaviyo Alum
  • 271 replies
  • Answer
  • October 27, 2020

Hi @awalters

Thanks for being a part of the Klaviyo Community. This is a great question! Have you had the chance to take a look at this article on event variables yet? I pasted it below too for easier access, but the article goes into more depth. This should be able to help you identify the appropriate tags for product image, product name and quantity under each platform. 

Thanks, 
-Cassy

 

BigCommerce
Product Name/Title {{ event.extra.line_items.0.product.name }}
Product URL {{ event.extra.items.0.product.url }}
Image {{ event.extra.items.0.product.images.0.src }}
Price for Product  {{ event.extra.line_items.0.product.price }
Quantity {{ event.extra.line_items.0.quantity }}
Total {{ event.extra.total_inc_tax }}
 

Magento 1

Magento 2

Product Name/Title

{{ event.extra.line_items.0.product.name }}

{{ event.extra.line_items.0.product.name }}

Product URL

{{ event.extra.line_items.0.product.key }}

{{ event.Items.0.Product.FullURL }}

Image

{{ event.extra.line_items.0.product.images.0.url }}

{{ event.extra.line_items.0.product.images.0.url }}

Price for Product 

{{ event.extra.items.0.base_original_price }}

{{ event.extra.line_items.0.product.price }}

Quantity

{{ event.extra.line_items.0.quantity }}

{{ event.extra.line_items.0.quantity }}

Total

{{ event.extra.base_grand_total }}

{{ event.extra.base_grand_total }}

Shopify
Product Name/Title {{ event.extra.line_items.0.product.title }}
Product Handle {{ event.extra.line_items.0.product.handle }}
Image {{ event.extra.line_items.0.product.images.0.src }}
Price for Product  {{ event.extra.line_items.0.line_price }}
Quantity {{ event.extra.line_items.0.quantity }}
Total {{ event.extra.customer.total_spent }}
WooCommerce*
Product Name/Title {{ event.extra.Items.0.Name }}
Product URL {{ event.extra.Items.0.URL }}
Image {{ event.extra.Items.0.Images.0.URL }}
Price for Product  {{ event.extra.Items.0.LineTotal }}
Quantity {{ event.extra.Items.0.Quantity }}
Total {{ event.extra.Items.0.TotalWithTax }}


*You can rebuild carts from an Abandoned Cart flow in WooCommerce by using the parameter ?wck_rebuild_cart={{ event.extra.CartRebuildKey }}. Cart rebuilding is also available for Shopify and Magento 1 integrations but is pre-generated in the default Abandoned Cart flows.

​​​


Forum|alt.badge.img+2
  • Author
  • Contributor II
  • 3 replies
  • October 28, 2020

Thanks, @cassy.lee . The page you referenced will work nicely.

 

Thanks again.