Skip to main content
Easy Digital Downloads Documentation
Documentation, Reference Materials, and Tutorials for Easy Digital Downloads

Showing the Cart Total in Your Template

The edd_get_cart_total() function will let you show the total price of all items in the shopping cart anywhere in your template.

This function will return the total price of all items in the shopping cart, though unformatted.

Let’s say you have two items in the cart, one priced at $5 and one priced at $8; this code will echo out “13”:

echo edd_get_cart_total();

This function also includes any taxes, discounts, and fees applicable to the cart.

To show a fully-formatted amount, use:

edd_cart_total();