Last active
July 29, 2019 09:43
-
-
Save shopifypartners/b4982746051ff4f2dad6d330b27f759d to your computer and use it in GitHub Desktop.
Price with compare at price - https://www.shopify.com/partners/blog/collection-page-price-range
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
<span class="price-item price-item--regular" data-regular-price> | |
{% if available %} | |
{% if compare_at_price > price %} | |
{{ compare_at_price | money }} | |
{% else %} | |
{{ money_price }} | |
{% endif %} | |
{% else %} | |
{{ 'products.product.sold_out' | t }} | |
{% endif %} | |
</span> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment