Prestige want to display % OFF

New Member
1 0 0

I have Prestige theme and would like to display % OFF my store I was able to accomplish this by following steps on I added the following to Product-template.liquid

{{ product.compare_at_price | minus: product.price | times: 100 | divided_by: product.compare_at_price | replace: '0,', ''| append: "% OFF"}} 

but this ONLY worked on the product collection pages it doesn't work on individual product pages. I would like this to also be displayed on individual product pages. Any help is highly appreciated.