Skip to main content

Quick Start: Best Discount Badge

The simplest way to show a discount badge using the max_reward_percent or max_reward_cents scalar metafields.
Product card with red '20% OFF' badge in top-right corner
This approach is simpler than parsing the full discounts array and automatically shows the best available discount.

Best Discount with Title

Show both the discount value and title using max_reward_discount:
{% assign percent_off = product.metafields.app--9549316097--discount_kit.max_reward_percent.value %}
{% assign best_discount = product.metafields.app--9549316097--discount_kit.max_reward_discount.value %}

{% if percent_off and best_discount %}
  <div class="promo-banner">
    <strong>{{ best_discount.discount_title }}</strong>
    <span>Save {{ percent_off | round }}%</span>
  </div>
{% endif %}

Sales Badges

Simple Percentage Badge

Product card with red '20% OFF' badge in top-right corner

Pricing Display

Crossed-Out Original Price

Product pricing showing original price crossed out in gray and sale price in red

Volume Pricing Table

Product with info icon next to title and volume pricing popup showing quantity tiers and discounted prices

Collection Banners

Simple Collection Promo

Collection page with red banner displaying 'PLANTS DISCOUNT Save up to 20% on this collection!'

Next Steps