Created
March 21, 2022 13:18
-
-
Save austriker27/83cfb099449e513daa0fca181825b708 to your computer and use it in GitHub Desktop.
Super simple free shipping progress for shopify cart page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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