Hi,
I’m getting this error on my cart screen.
translation missing: en.cart.general.total
Can any one help me fix it?
Thanks
Hi,
I’m getting this error on my cart screen.
translation missing: en.cart.general.total
Can any one help me fix it?
Thanks
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!!!