Product image error in Collection due to 'Compare at price'

Product image error in Collection due to 'Compare at price'

WillKelley
New Member
5 0 0

When i use 'compare at price' the product image in collections has an error message on it saying 'Translation missing:En.Products.Product.Sale I have left it on so people can see using the URL below:

 

Product with sale on: https://www.theperfectbottle.com/products/abreu-vineyards-napa-valley-capella-napa-valley-2016

 

Collection where error is coming up: https://www.theperfectbottle.com/collections/united-states

 

Does anyone know how to get rid of this error bubble coming up on the product image in the Collection (USA - in this case)? 

 

Thank you in advance

Will

  • compare at price.jpg
Replies 4 (4)

htmlBurger
Shopify Partner
87 8 21

Hello @WillKelley 

This error is showing because the SALE text is missing from the locale files. 

To fix this, go to Online store -> Themes -> Edit code and locate the file locales/en.default.json (it might be called just en.json). In this file, you'll see a JSON object with texts in it (these texts are all the static texts in the theme). Search for the line that has this code:

"products": {
    "product": {

You will see a lot of texts in this format:

"add_to_cart": "Add to cart",
"choose_options": "Choose options",
.
.
.

After one of these rows, just add the following:

"sale": "Sale",

This will fix the problem.

Let me know if you have any issues or you need further instructions.

Found this helpful? Like and accept as solution to help others too!
htmlBurger – Founded in 2007, Shopify experts for 10+ years.
Custom themes, UI/UX design, ongoing maintenance & support.
Let's talk: ecom@htmlburger.com

gagarwal
Shopify Partner
45 0 9

Hi,

 

I am not 100% sure but looks like you have a rule in your app that sets Badges to display a sale badge whenever compare at price is used. In the app, there might be a translations feature where that english language version of that badge is missing.

WillKelley
New Member
5 0 0

Thakns Gaurav, it does sound like it could be to do with that, we use 'Badgify' and it looks like there may be an issue with that. I've reached out to them for support but may need some here if they can't sort. 

gagarwal
Shopify Partner
45 0 9

The advise from htmlBurger above seems right. You want might to try that out (if not already)