This is the API docs for LemonStand V1, which has been discontinued. LemonStand is now a cloud based platform, available at lemonstand.com.

LemonStand API

total_cart_items Twig function

Defined in /modules/shop/classes/shop_twigextension.php, lines 37-40
Author LemonStand eCommerce Inc.
integer function total_cart_items(string $cart_name='main')
$cart_name string specifies the cart name
{return} integer returns the total item number.
Returns total number of items in the cart. Usage example:
{{ total_cart_items() }} items in the cart