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/f8aa54a580e6d7766cd52415a232b1d5 to your computer and use it in GitHub Desktop.
Save essmahr/f8aa54a580e6d7766cd52415a232b1d5 to your computer and use it in GitHub Desktop.
Parallax
<li class="mm-label">
<p class="mm-counter"><span class="sam-cart-original-total">{{ cart.total_price | money }}</span> &nbsp; <span class="total sam-cart-total"></span></p>
<a href="/cart">
<strong>{{ 'layout.general.subtotal' | t }}</strong> &nbsp; <span class="sam-discount-info" style="text-transform: none;"></span>
</a>
<input type="hidden" name="discount" id="discount" value="" style="display: none;"/>
</li>
app.js.liquid
function refreshCart(cart) {
if (typeof SAMCartCheckDiscount == "function") {
SAMCartCheckDiscount(cart, {id: window.sam_customer_id, email: window.sam_customer_email })
}
cart_items_html += '<li class="mm-label">' +
'<p class="mm-counter"><span class="sam-cart-original-total">' + Shopify.formatMoney(cart.total_price, $cart.data('money-format')) + '</span> &nbsp; <span class="total sam-cart-total"></span></p>' +
'<a href="/cart">' +
'<strong>{{ 'layout.general.subtotal' | t }}</strong>' + ' <span class="sam-discount-info" style="text-transform: none;"></span>' +
'</a><input type="hidden" name="discount" id="discount" value="" style="display: none;"/>' +
'</li>' +
'<li class="mm-subtitle clearfix">';
===
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment