Checkout error: I18n Error: Missing interpolation value "savings" for "You're saving {{ savings }}"

Checkout error: I18n Error: Missing interpolation value "savings" for "You're saving {{ savings }}"

rabbit160
Tourist
7 0 1

Hi there,

 

When I activate a discount to my store, the cart has this error message at the bottom of the cart area: I18n Error: Missing interpolation value "savings" for "You're saving {{ savings }}".

 

This is what the code is in my theme: 

{% if cart.total_discounts > 0 %}
{% assign cartTotalDiscounts = cart.total_discounts | money %}
<p class="cart__savings">{{ 'cart.general.savings_html' | t: savings: cartTotalDiscounts }}</p>
{% endif %}

 

How do I get rid of this and instead have "you're saving $XXX"


Thanks heaps 🙂

Replies 2 (2)

aliceyoo
Shopify Partner
2 0 0

I'm also getting this error code at check-out: I18n Error: Missing interpolation value "savings" for "You're saving {{ savings }}"

How do you fix this? I'm not savvy with code so I might need a Shopify expert to help me if the problem involves code. If not, and it's an easy fix, that would be best! Thanks!!!

Imogen
Shopify Staff
1902 213 341

Hi there, @aliceyoo. Thanks for taking the time to reach out to the Shopify Community, and following up on this thread! My name is Imogen. It's good to meet you!

 

If possible, can you provide us with a screenshot of where this error is appearing? You mention that this is appearing in your checkout, so we'd love to see if you can provide us a screenshot so we can see where, along with a link to your store and the steps you've taken to trigger the message, so we can test replicating.

Additionally, does this issue persist when trying out a different theme in your store? If you haven't tried this yet, please give it a try and let us know what results!

Imogen | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog