Shopify themes, liquid, logos, and UX
Edit theme code, in snippets/cart-drawer.liquid file , edit code,
1.add this:
<script>
document.addEventListener('DOMContentLoaded', function() {
this.defaultButton = document.getElementsByClassName('cart__checkout-button button');
if (this.defaultButton.length > 0){
console.log(this.defaultButton)
const html = this.defaultButton[0].innerHTML;
this.defaultButton[0].innerHTML = html+'{{ cart.total_price | money_with_currency }}'
}
});
</script>
2. remove this:
<div class="totals" role="status">
<h2 class="totals__total">{{ 'sections.cart.estimated_total' | t }}</h2>
<p class="totals__total-value">{{ cart.total_price | money_with_currency }}</p>
</div>
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025