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.
User | RANK |
---|---|
21 | |
21 | |
8 | |
8 | |
7 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023