Cart Totals omitting decimal.

econica
Tourist
6 0 1

Hoping someone can help me fix this. 

My shop's cart page omits decimal point in the totals whenever my customers add or remove additional items. Instead it shows a scary total in 5-digit number .  Screenshot attached.  My currency formatting looks like this - screenshot attached as wellScreen Shot 2020-03-09 at 2.38.33 PM.pngScreen Shot 2020-03-09 at 2.39.40 PM.png. Thank you so much! 

0 Likes
econica
Tourist
6 0 1

my shop: econica.ca

0 Likes
Ninthony
Shopify Partner
1966 296 780

Looks like it needs a money filter applied to it. I suspect you can find the culprit in cart-template.liquid in your sections folder. Ctrl + F and look for:

 

{{ cart.total_price }}

Should change that to:

 

{{ cart.total_price | money }}

 

If you can't find it, you can send me a private message with your store URL and I can request access to take a look for you.

If my solution helped you, please like it and accept it as the solution!
If you'd like to make any edits to your store, please send me a personal message and we can discuss what you'd like to accomplish :D
0 Likes
econica
Tourist
6 0 1

thank you so much! I tried that but that line in the code 

{{ cart.total_price }}

has "json" at the end of it - screenshot attached.   And it didn't work. The page does not refresh with json.png new totals at all. I will send you a message :) thank  you for your help!

0 Likes
econica
Tourist
6 0 1

thank you so much for your help, 

0 Likes
georgiebrown00
Tourist
8 0 1

Do you mind sharing the answer?

0 Likes