Code Error - to show price reduction label on product and category page

Hi,

I am working on Dawn 12.0.

I edited the liquid code to change the price reduction lable on the product detail-page. It worked out nicely. Unfortunately, I got an error on the category page - see screenshots.

I don’t know, what’s wrong. The price-points are managed under products and I think the category page receives those price points from the same source, so I don’t understand why I get an error.

Can someone help me?

Productpage

Category page

Code

Hi @occs

On the Category page, you must change product. in your code to card_product.

![Screenshot_6.jpg|1731x458](upload://9GSNF9tavKKgrNkJFijrP3lK7CA.jpeg)

Hi Dan, ok. and where exactly do I need to add that?

Open card-product.liquid, find this line of code

{{- 'products.product.on_sale' | t -}}

Replace this code with your code

Hi Dan,

I have exchanged the code, but it still didn’t work out. Did I oversee anything?

Are you still calling reload-saving.liquid file to your card-product.liquid file?

Hi Dan,

so reload-savings is containing this code

and in card_product.lliquid I have added the same code with card_product instead of product.