Here's how to show savings in your cart from the Automatic Discounts & Gifts Shopify app. This code is for the Flex theme. Though it may be a helpful starting point for those on other themes.
Theme edits needed:
- Create a new snippet - cart-automatic-discounts.liquid - using the code below.
- Add a render to the new snippet to the section cart__main.liquid. Example in the code below.
Code for Flex Theme
Create new snippet
Edit section cart__main.liquid
Hey, Scott Austin here.
In this video, I'm gonna show you how to add the savings in cart functionality to the automatic discounts and gift app to your flex themes cart. So if you're using automatic discount and gifts, the app that allows you to stack more than one discount in a store, I'm using it in a store right now for allowing bulk discounts. So if you have more than $75 in your cart, you get 10% off. Then if you have more than a hundred dollars in your cart, you can get 15% off and you know, up, up the ladder there, you can't do that with normal Shopify discounts. So you have to add an app in, and the app I use is automatic discount and gifts. And if you go into their menu under this savings in cart functionality, here's their instructions on how to install it.
And that's how I get it to display inside of this colored background where the total information is. So that's all you need to do to get this work. And now you're gonna have to go in and maybe change some settings or some, some CSS here for the color you want, like my savings. I wanted it to show in this version of red, which is the red we're using in this store, this, these colors here, the, the brown is already in the, the liquid code, but this, this is a CSS setting for this red. So if you wanna different red, you'll notice this red here matches my checkout button. You may want to change that CSS a little bit. So that's how we do it.
Hopefully that helps. Thanks for watching.