@INKLY - it will need code editing, you will need liquid developer, if you are familiar with coding then you can do it in product template
Topic summary
A user wants to display savings information on product pages, showing the discount percentage between the original and sale prices (e.g., “Save 15%”).
Proposed Solution:
- Calculate discount percentage using Liquid code in the price template file
- Formula: ((compare_at_price - price) / compare_at_price) × 100
- Use ChatGPT or hire a Liquid developer to implement the code modifications
Implementation Attempt:
The user tried implementing the solution with ChatGPT assistance but encountered a Liquid syntax error (“Unknown tag ‘{% comment’”) on line 39. The code snippet shared appears corrupted or improperly formatted, making it difficult to diagnose the specific issue.
Alternative Approach:
A third-party app (Fordeer Product Labels & Badges) was suggested, which includes a “Discount Range” feature that automatically displays discount percentages based on compare-at-price and current price.
Status: Unresolved. The user needs help fixing the Liquid syntax error or may consider using the app-based solution instead.