Hello, I am having issues with our slider cart. When you apply the discount code is doesn’t not discount the total at the bottom. We found a fix which was when you add the discount code it sends you straight to checkout. This massively improved our conversion rate however it keeps re braking, which I can not understand.
Please can anyone help me with this we use the theme Dawn Pro. Our website is baby-boutique.uk a code to try is 5FIVE, which applies to all products.
Any help appreciated.
Kind Regards Sarah
2 Likes
@Sarahmarsh001 ,
This usually happens because the cart drawer/slider in the theme isn’t actually recalculating the cart totals when a discount code is applied.
In Shopify, discount codes are normally calculated at the checkout level not directly inside the cart unless some extra logic or an app is handling it.
Since you mentioned that it works when the code redirects to checkout, that makes sense because the discount is being applied where Shopify officially processes it.
A few things you might want to check
Make sure there isn’t any custom JavaScript in the cart drawer that overrides the default cart update behavior.
If you’re using a cart or discount app it could be conflicting with the theme’s AJAX cart.
Sometimes after theme updates or edits, the cart-drawer.js or cart.js file stops refreshing the totals properly.
Clear cache and test in an incognito window to confirm it’s not a cached script issue.
It doesn’t act broken now. It goes straight to checkout when I click apply.
Just curious, but you find this to be better? Because there is a way to add the discount code to the cart page, it’s just a bit of javascript.