Created
February 5, 2018 18:27
-
-
Save essmahr/f8aa54a580e6d7766cd52415a232b1d5 to your computer and use it in GitHub Desktop.
This file contains 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
Parallax | |
<li class="mm-label"> | |
<p class="mm-counter"><span class="sam-cart-original-total">{{ cart.total_price | money }}</span> <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> | |
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> <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