Error "translation missing: en.cart.general.savings" on cart page. Any suggestions?

atxer
Shopify Partner
16 0 6

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.

Screen Shot 2020-12-18 at 10.30.46 PM.png

 

 

Replies 14 (14)

Jivan_Suhagiya
Shopify Partner
581 79 124

Hi,
Actually its locals error, please check that "savings" property under "cart" -> "general" present in your en.json or en.default.json file

Jivan_Suhagiya_0-1608353079101.png

 

If helpful then please Like and Accept Solution.
Email: suhagiyajivan1992@gmail.com
Skype: jivan.suhagiya
First kind of Checkout Reminder APP: https://apps.shopify.com/checkout-reminder
atxer
Shopify Partner
16 0 6

Should I just add it and make sure it's referenced? Also thank you for your response! This is what the file looks like

Screen Shot 2020-12-19 at 12.01.02 AM.png

Jivan_Suhagiya
Shopify Partner
581 79 124

yes, add it
make sure like
"general":{

"savings":"Savings"

}

If helpful then please Like and Accept Solution.
Email: suhagiyajivan1992@gmail.com
Skype: jivan.suhagiya
First kind of Checkout Reminder APP: https://apps.shopify.com/checkout-reminder
atxer
Shopify Partner
16 0 6

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.

Screen Shot 2020-12-19 at 12.44.16 AM.pngScreen Shot 2020-12-19 at 12.43.43 AM.png

Jivan_Suhagiya
Shopify Partner
581 79 124

can you please ping me on skype for quick chat?

If helpful then please Like and Accept Solution.
Email: suhagiyajivan1992@gmail.com
Skype: jivan.suhagiya
First kind of Checkout Reminder APP: https://apps.shopify.com/checkout-reminder
Jivan_Suhagiya
Shopify Partner
581 79 124

add this above "empty_cart_1"

"general":{

"savings":"Savings"

},
so it will be like this
"cart":{

"general":{

"savings":"Savings"

},
"empty_cart_1":.....

If helpful then please Like and Accept Solution.
Email: suhagiyajivan1992@gmail.com
Skype: jivan.suhagiya
First kind of Checkout Reminder APP: https://apps.shopify.com/checkout-reminder
trophi75
New Member
8 0 0

Hi Jivan

 

I have the same problem, I have followed your instructions, but unfortunately it does not work.
Can you please help me?Page CartPage CartCode ShopifyCode Shopify

Jivan_Suhagiya
Shopify Partner
581 79 124

Hi @trophi75 
is that issue fixed? if you still need help, feel free to ping me on skype for quicker chat

If helpful then please Like and Accept Solution.
Email: suhagiyajivan1992@gmail.com
Skype: jivan.suhagiya
First kind of Checkout Reminder APP: https://apps.shopify.com/checkout-reminder
trophi75
New Member
8 0 0

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.

enzo-garcia-vii
Visitor
1 0 0

Hello eveyone!

I am new here. I encountered the same issue and wondering why this has happened. I would appreciate any help, please.

enzogarciavii_2-1631140784799.png

 

enzogarciavii_1-1631140701409.png

Thank you for your help.

Regards

Enzo

 

eastendpets
Visitor
1 0 0

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. Screen Shot 2021-09-14 at 10.19.02 PM.png

roadfury
Tourist
8 0 2

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

 

Correct Json addition for cart.general.savings -Melissa.JPG

Participant
Excursionist
14 0 2

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".

bioclock
Visitor
1 0 0

great works my file looks bit diffrent and instead of savings for me work discounts added both 😉

 

bioclock_0-1709904581291.png