Why isn't my compare at price showing on my product photos?

Hey there. My name is Basti and I own a small Shopify Store.

At first the compare at price and the little Badge on top of the product photos that says “Sale” was visible.
Later I wanted to import some code so that it says how much % you get off. That didn’t work out and since then it won’t show anymore. I used the Refresh theme and even made the Website completely new again. All of that didnt seem to work and so im lost now…

Can anyone help?

My Shop:
https://culinary-gear.com/

Hi @Basti121

We checked your issue and saw that at the badge sale, the discount has not been calculated, it may be because you configured wrong something in the theme.

You can find the code that needs to handle this badge Sale, add the following code and CSS to display reasonably.

{% if product.compare_at_price_max > product.price %}You Save {{ product.compare_at_price_max | minus: product.price | times: 100.0 | divided_by: product.compare_at_price_max | money_without_currency | times: 100 | remove: '.0'}}% {% endif %}

Let me know if it works for you by giving us a like or marking it as a solution.