Last active
August 31, 2018 21:44
-
-
Save whistlerbrad/815103ef9b74b455f626fd7116aa2580 to your computer and use it in GitHub Desktop.
Hide sold out prices from product grids
This file contains hidden or 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
<p class="price_wrapper"> | |
<span class="price{% if on_sale %} on-sale{% endif %}"> | |
{% if product.price_varies %}{{ 'products.general.from' | t }} {% endif %} | |
{% unless sold_out %} <span class="money">{{ product.price | money }}</span> | |
</span> {% endunless %} | |
{% if sold_out %} | |
<em>{{ 'products.product.sold_out' | t }}</em> | |
{% endif %} | |
{% if on_sale %} | |
<span class="compare-at"> | |
<span class="money">{{ product.compare_at_price | money }}</span> | |
</span> | |
{% endif %} | |
{% if product.metafields.spr.reviews %} | |
<br /> | |
<span class="shopify-product-reviews-badge" data-id="{{ product.id }}"></span> | |
{% endif %} | |
</p> | |
</a> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment