% OFF Not changing from different priced variants (Dawn theme)

Loz86
Pathfinder
91 7 18

Hi guys,


I've used the snippets from this post to change my "Sale" badge to display the % OFF based on the compare prices.

Works great however just needs a slight adjustment to show the correct % OFF when different priced variants are selected, as can be seen here the % OFF remains the same.

 

Many thanks.

Replies 2 (2)
Loz86
Pathfinder
91 7 18

Would you like to tell me how to fix it?

GouravKumar
Shopify Partner
33 1 11

Hello, i am looking for the same issue, kindly help if you the solution by chance. 

Thank you.