Copy-paste a Liquid snippet for marketing - Bronze > Silver > Gold progress bar - gamifies the next purchase.
You're ₹1800 away from Gold
1{%- assign pct = current | plus: 0 | times: 100 | divided_by: needed | plus: 0 -%}2<div class="gpl-tier">3 <p class="gpl-tier__line">You're <b>{{ needed | minus: current | plus: 0 }}</b> away from <b>{{ next | default: 'Gold' }}</b></p>4 <div class="gpl-tier__bar"><span style="width: {{ pct | at_most: 100 }}%"></span></div>5 <div class="gpl-tier__labels"><span>Bronze</span><span>Silver</span><span>{{ next | default: 'Gold' }}</span></div>6</div>
Full source is for members
One payment - every snippet, guide and bundle