Liquid, JavaScript, themes, sales channels
I'm working in the express theme, where it comes with a running total of the price of the cart in the Header.
Here's the stock code for that:
<div class="header__cart-price-bubble" data-header-icon>
<span class="icon-fallback-text">{{ 'layout.cart.cart_price' | t }}</span>
<span data-cart-price-bubble data-cart-price>{{cart.total_price | money }}</span>
</div>
What I'd like to have that do is display $50 - cart.total_price
and also include text on either side, so the end result (given they've added $20 worth into the cart, for example) would be something like: Spend $30 for free shipping
Any ideas?
@h4ruki
to do what you want, you need to use HTML & Jquery code. if you have not knowledge of that languages then I can do that for you.
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024