Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save austriker27/83cfb099449e513daa0fca181825b708 to your computer and use it in GitHub Desktop.
Save austriker27/83cfb099449e513daa0fca181825b708 to your computer and use it in GitHub Desktop.
Super simple free shipping progress for shopify cart page
<div style="display:flex; justify-content:flex-end;">
<div>
$0 <progress max="5000" value="{{ cart.total_price }}"></progress> $50
<br>
{% if cart.items.size == 0 %}
Add items to your cart to receive free shipping.
{% endif %}
{% if cart.items.size != 0 %}
{% if cart.total_price >= 5000 %}
You've got free shipping 👌
{% elsif cart.total_price < 5000 %}
You're only {{ 5000 | minus: cart.total_price | money }} away from free shipping.
<a class="underlined-link" href="/collections/popular-products">Shop best sellers >></a>
{% endif %}
{% endif %}
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment