Now I just wonder something, what would I need to add in the CSS to make the bar cover all the cart drawer? Because look like the div doesn’t cover it all. Thanks in advance.
Hi @DFU98 i will need to take a look in your preview page to give a proper code , can you please share with me the URL of the theme you are working on?
I have this installed and working correctly, but we have a new product that will not qualify for free shipping. Is there a way to hide it from one product? Thanks!!
Late to this, but for anyone landing here from search: the Liquid approach above calculates the total when the page renders, so the bar won’t move when the cart updates over AJAX — which is exactly what Impulse’s cart drawer does.
Reading /cart.js after each cart change avoids that. It’s Shopify’s own cart endpoint, so it doesn’t depend on Impulse’s markup and survives a theme switch:
Paste it into layout/theme.liquid immediately after the opening <body> tag, then set mountSelector in the config to your cart drawer’s container — something like '.cart-drawer__footer' — to place it inside the drawer instead of at the top of the page.
Duplicate your theme before editing; a theme update replaces theme.liquid.
One caveat worth knowing: this shows whatever threshold you type into the config. It doesn’t read your actual shipping rates, so the matching free shipping rate needs to exist under Settings → Shipping and delivery.