Skip to content

Instantly share code, notes, and snippets.

@ismasan
Created October 2, 2018 14:55
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 ismasan/ab38b7370820b8fba7f247717064228f to your computer and use it in GitHub Desktop.
Save ismasan/ab38b7370820b8fba7f247717064228f to your computer and use it in GitHub Desktop.
{% if product.has_multiple_prices or product.price.positive %}
<span class="bootic-price">{{ product.price.format }}</span>
<span class="bootic-price-comparison-box" style="display: {% if product.has_price_comparison %}inline-block{% else %}none{% endif %}">
<span class="bootic-price-comparison-label">{{ 'products.price_comparison_label' | t }}</span>
<strike class="bootic-price-comparison">
{% if product.has_price_comparison %}
{{ product.price_comparison.format }}
{% endif %}
</strike>
</span>
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment