Skip to content

Instantly share code, notes, and snippets.

@levinmejia
Created November 18, 2015 15:23
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 levinmejia/c65fff1727fe802b8056 to your computer and use it in GitHub Desktop.
Save levinmejia/c65fff1727fe802b8056 to your computer and use it in GitHub Desktop.
<a href="/cart" id="cart-total">
{{ 'santa-hat.png' | asset_url | img_tag }}
{% if shop.money_format == '${{amount}}' %}
<span id="cart-price">{{ cart.total_price | money | replace: '.00', '' }}</span>
{% else %}
<span id="cart-price">{{ cart.total_price | money }}</span>
{% endif %}
</a>
<style>
#cart-total img {
position: absolute;
top: -34px;
right: -24px;
width: 80px;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment