Shopify themes, liquid, logos, and UX
Hi,
I'm getting this error on my cart screen.
translation missing: en.cart.general.total
Can any one help me fix it?
Thanks
Solved! Go to the solution
This is an accepted solution.
Hello Heyhellovanessa,
It seems that in your case the translation in English is missing. You will have to add it to your theme. Log in to your store, and on the Online Store section, find your theme and click Edit code:
On the left side you have the structure of the theme with the files and the folders. You should look for the folder "Locales" and inside you should have a file called "en.json" or "en.default.json" (probably the second one).
Here you have the translations for your store in a schema. Your missing translation is related to cart, so, inside the file you should search for '"cart"' (CTRL + F, with the quotes). You should end up with something like this:
Under the "general" section, as the error implies, you don't have the value for the key named "total", as in the image above (there is no "total", only, "title", "vendor", "remove" etc.). This is the place where it should be added. Before your first entry (in my care "title"), please type:
"total": "Your total is ",
Of course, you can insert another message if this is not the most suitable one ("Total sum ", "The value of the cart is " or whatever). Don't forget the comma. The final result should look like this:
Then hit save and it should be all good now. Please let me know if you succeeded or have any trouble finding the place of the missing translation
This is an accepted solution.
Hello Heyhellovanessa,
It seems that in your case the translation in English is missing. You will have to add it to your theme. Log in to your store, and on the Online Store section, find your theme and click Edit code:
On the left side you have the structure of the theme with the files and the folders. You should look for the folder "Locales" and inside you should have a file called "en.json" or "en.default.json" (probably the second one).
Here you have the translations for your store in a schema. Your missing translation is related to cart, so, inside the file you should search for '"cart"' (CTRL + F, with the quotes). You should end up with something like this:
Under the "general" section, as the error implies, you don't have the value for the key named "total", as in the image above (there is no "total", only, "title", "vendor", "remove" etc.). This is the place where it should be added. Before your first entry (in my care "title"), please type:
"total": "Your total is ",
Of course, you can insert another message if this is not the most suitable one ("Total sum ", "The value of the cart is " or whatever). Don't forget the comma. The final result should look like this:
Then hit save and it should be all good now. Please let me know if you succeeded or have any trouble finding the place of the missing translation
Awesome it has worked - Thank you so much you are amazing!!!
Hello!
It was helpfull for me to. Just want to add, if u have a translated version with app from EN, u need to do this change on your own locales language .json
Also, was needed to add the total row to ,,headings"
But now its work, perfectly
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025