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”:
This function also includes any taxes, discounts, and fees applicable to the cart.
To show a fully-formatted amount, use: