Karlie here from the Shopify Guru Team! Can you tell me more about what seems to be happening? Can you tell me more about the discount you had created? Did you create the discount by following each of these steps? What is your shop URL?
Looking forward to hearing back from you!
I see that discount works fine on /cart page.
Also if checkout is accessed trough url as /checkout, discount still works fine.
So few points:
Let me know if you need help, I might be able to help you.
Karlie here! I'm glad you've sorted out the issue you were experiencing with discounts. You've mentioned since that you had removed some code from your theme and now you're experiencing difficulties? While I'm not able to help with coding problems, can you tell me more about what seems to be happening on your end? What type of issues are you experiencing now with your website?
Thank you for getting back to me!