How to remove dollar savings from You Save message on product page

Hi,

Currently my product page displays price savings in the following format.

You Save: $8.03 (22%)

I would like to update it to say:

You Save: 22%

Does anybody know where/what file I can make this change in? I have looked through the liquid files and cannot find it.

Thanks!

Hi There!

Look for product-template.liquid in your Sections folder and search for any “compare” title that includes this comparison, Should be easy. If you still can’t see it shoot the code here and we’ll fix it for you!

Cheers!

Hi,

Thanks for your response. I looked in product-template.liquid and found this when I search for “compare” -

{{ current_variant.price | money }}{% if product.compare_at_price_max > product.price %} {{ current_variant.compare_at_price | money }} {% endif %}

Is this the right snippet?