Skip to content

Instantly share code, notes, and snippets.

@essmahr
Created February 5, 2018 18:27
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 essmahr/95a6f534ec7c82a4a65fd82b4f03cedb to your computer and use it in GitHub Desktop.
Save essmahr/95a6f534ec7c82a4a65fd82b4f03cedb to your computer and use it in GitHub Desktop.
<!-- Add to cart.liquid -->
{% if customer %}
{% else %}
<div style="text-align: center;">
<b><a href="/account/login">Sign in</a></b> or
<b><a href="/account/register">Create a free Account</a></b>
to use your Membership benefits.
</div>
{% endif %}
==
<!-- after <form> tag -->
<input type="hidden" name="discount" id="discount" value="" />
==
replace
{{ cart.total_price | money }}
with
<span class="sam-cart-original-total">{{ cart.total_price | money }}</span><br>
<span class="total sam-cart-total"></span>
<div class="sam-discount-info"></div>
{% include 'sam_cart_discount' %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment