Dawn Theme - How to show cart subtotal in the cart-notification pop-up when an item is added?

I’m using the Dawn theme (v6.0.2) and I would like to show the carts subtotal in the cart-notification pop-up when ever an item is added. I have attached a screenshot and highlighted the area that I would like for the subtotal to show.

I do backend dev work but don’t work with front end stuff that much. If anyone can point me in the right direction or just show me where some boilerplate code that will do this is at, that would be great. Thanks!

Hi @clovehitch00 ,

Please go to cart-notification-product.liquid file and add code here:

code:


    ## {{ 'sections.cart.subtotal' | t }}
    

{{ cart.total_price | money_with_currency }}

  

Hope it helps!

1 Like

Thanks for that code - I added it in but it’s not showing anything different.

I opened the site in a private tab and inspected the popup. I don’t see the new class

div class="totals"

in the source so that makes me think what I just added isn’t getting rendered for some reason?

Hi @clovehitch00 ,

Please send your site and if your site is password protected, please send me the password. I will check it.

Were you able to solve it? Im having the same issue