I need to add a checkbox to the Woocommerce cart page, so that when a user checks the checkbox, a fixed discount is applied to the cart totals (and it should be removed when the user unchecks the checkbox again). The updated total needs to be displayed ever where correctly (mini-cart, checkout, order emails, admin backend).
This question is similar, but I need to add it the checkbox to the cart page, and the updated total should be displayed correctly everywhere. Ideally, it would also be possible to remove the discount in admin backend on the order detail page.
How can I achieve this?