Skip to content

How to add custom fee to cart summary on click

I want to add a custom fee to the cart summary when the checkbox is check and remove when unchecked and also adjusting the order total with each checkbox change. How can I achieve this?
example order summary