Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
So I recently coded the majority of a theme with major customizations and it's all working fine, the only thing is i'm getting a "translation missing: en.cart.general.savings" on the cart page now. I've checked the settings.json and I can't find any translation errors in edit languages. It looks like this on the cart page... It doesn't effect checkout or anything it's just ugly lol. The strange thing is it seems to show the amount shown right after the error, so i'm honestly lost.
Hi,
Actually its locals error, please check that "savings" property under "cart" -> "general" present in your en.json or en.default.json file
Should I just add it and make sure it's referenced? Also thank you for your response! This is what the file looks like
yes, add it
make sure like
"general":{
"savings":"Savings"
}
Hmm I wonder if i'm just doing something wrong. It won't let me save the json and says that it has a token error. I even played with spacing on the code and it still wouldn't save. It also wouldn't save the first general code just by itself without the savings one.
can you please ping me on skype for quick chat?
add this above "empty_cart_1"
"general":{
"savings":"Savings"
},
so it will be like this
"cart":{
"general":{
"savings":"Savings"
},
"empty_cart_1":.....
Hi Jivan
I have the same problem, I have followed your instructions, but unfortunately it does not work.
Can you please help me?
Hi @trophi75
is that issue fixed? if you still need help, feel free to ping me on skype for quicker chat
Hi Jivan,
I have partially solved because the problem occurs when I create automatic discounts. I eliminated this method and everything went back to normal.
Perhaps it will be a problem with my theme, which was purchased from a third party.
Hello eveyone!
I am new here. I encountered the same issue and wondering why this has happened. I would appreciate any help, please.
Thank you for your help.
Regards
Enzo
I am having the same issue! its saying en.cart.general.savings where it should sale discount. Its also no displaying my sale prices on the collection page despite having a discount set up for an entire collection.
I'm here because I had the exact same issue. I seemed to have found the solution!
Add this code above the "pages": { (Blue arrow pointing at it in the screenshot):
},
"cart": {
"general": {
"savings": "Savings"
}
The previous replies kept on referencing to place code under "cart": { but that cart was under "pages": {. And that seems to be the problem. We need to create a whole new string starting off cart, not pages.
Doing this solved my issue. Hope it helps your guys' too! (^0^)
-Meli
This worked for us — many thanks! As you said, if you want the text to appear in your site's Cart, the code needs to be under a string that starts off "cart".
great works my file looks bit diffrent and instead of savings for me work discounts added both 😉
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024