...
- Display the cart item count
- Display the number of units (sum of the item quantities)
- Display the cart subtotal
- Display a greet to the logged in customer
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
$cart.getItemCount()
|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
#set ($units = 0)
#foreach ($cartItem in $cart.getItems())
#set ($units = $units + $cartItem.getQuantity())
#end
You have $units unit(s) in your cart. |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
$cart.getSubTotal()
|
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
#if ($cart.getCustomerProfile())
Welcome back $cart.getCustomerProfile().getFirstName()
#end
|