The cart icon in the header of the Shopify theme "Dawn" normally displays the number of items in the cart, but this is an example of how to set it up so that it displays the total price of the products in the cart instead.
Example of setting to display total amount on the header cart icon in Shopify's theme "Dawn"

[How to set it up] Add a custom Liquid section to the header group and insert the code

