Liquid, JavaScript, themes, sales channels
Hello,
I'm setting up a tiered discount based on spend with our Shopify store and am looking for some help with adding 'Total Savings' to our checkout page. The issue we're running into is that when we run the Shopify script on our store, the cart discount is $0 because the Script applies the % off to each line item. While the Subtotal reflects the correct amount, I'd like to setup the logic to work like the following:
-If discount code is applied, amount is $0, display 'Total Savings' instead of 'Discount' at checkout
-If discount code is applied to cart, amount is >$0, display 'Discount' instead of 'Total Savings'
I'm just starting out on Shopify and was initially trying to edit through out checkout.liquid template, however it looks like this is just pulling in the following div for our order summary:
<div class="sidebar__content">
{{ content_for_order_summary }}
</div>
So thinking I need to add a script to the 'Additional Scripts' field in Settings > Checkout, but am a little bit unsure of the best way to handle.
Appreciate any help here or even just leading me in the right direction.
Thank you!
Sam
Hi,
All content is generated from shopify backend and displayed on browser for checkout pages.
You can do this using javascript.
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