I'm currently using the custom coupon code here in my checkout template:
I've noticed however that the coupon field of course will be added to all checkout pages, and it shouldn't really appear on a cancellation page or a balance due page. Is there something I can check for in the DOM that's specifically related to those two checkout page instance types? Something like a 'if cancel order class is found, hide the coupon' type condition. Thoughts?