How can I automatically update the cart total price in the header?

Hi,

I’am using the debut theme.

I want to see the total price for the cart in the header. I’ve already added this line: {{ cart.total_price | money }} below the piece of code showen below. This is in the header.liquid file.


            {% include 'icon-cart' %}
            {{ 'layout.cart.title' | t }}
            

              {{ cart.item_count }}
              {{ 'layout.cart.items_count' | t: count: cart.item_count }}
            

          
          {{ cart.total_price | money }}

This gave me this:

Tivabox_0-1617444025959.png

So far so good, but when there is a product in the cart, and I add another one, it doesn’t automatically update the price.

Is there someone who can help me out and fix this for me please?

Thanks in advance!

Kind regards,

Tim

Is there someone that can help me with this?