The following code snippets will show you how to:
$cart.getItemCount() |
#set ($units = 0) #foreach ($cartItem in $cart.getItems()) #set ($units = $units + $cartItem.getQuantity()) #end You have $units unit(s) in your cart. |
$cart.getSubTotal() |
#if ($cart.getCustomerProfile()) Welcome back $cart.getCustomerProfile().getFirstName() #end |