Discount Badge Code

user_5540440 avatar
user_5540440
plain_text
11/18/2024 8:40 PM
364 B
15
Indexable
<!-- Discount Badge -->
        <span class="discount-badge">
          {% assign discount_percentage = product.compare_at_price | minus: product.price | times: 100 | divided_by: product.compare_at_price %}
          {{ discount_percentage | round }}% OFF
        </span>
Editor is loading...
Leave a Comment