Skip to main content
Solved

How to Display the Total Numbers of Items in a Cart in an Email?

  • February 25, 2021
  • 2 replies
  • 602 views

Forum|alt.badge.img+2

Hello everyone,
I would like to know the code snippet that displays the total number of items in the cart.
For example I would like to make a sentence "There are 3 items in your cart". 
I would like this number to be variable depending on the number of items in the cart.
Thank you in advance for your help.

Best answer by Bobi N.

@Luc messmer 

Try this code {{ event|lookup:'Item Count' }} it should do exactly what you need..

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

2 replies

Bobi N.
Partner - Platinum
Forum|alt.badge.img+45
  • Champion & Partner
  • 453 replies
  • Answer
  • February 25, 2021

@Luc messmer 

Try this code {{ event|lookup:'Item Count' }} it should do exactly what you need..


Forum|alt.badge.img+2
  • Author
  • Contributor II
  • 3 replies
  • February 25, 2021

Thank you very much for your reactivity.