If you’re a merchant selling goods to customers in Colorado, SB 21-260 establishes a retail delivery fee that merchants are required to collect and remit to the state of Colorado. If you wish to continue to sell to customers in Colorado, you will need a solution to collect this fee. Until a proper solution exists, this code snippet will serve as a band-aid solution.
Not sure what to do with code snippets? See What Do I Do With These Code Snippets?
This is super helpful! Any idea how to not have tax added on top of this delivery fee?
The 3rd parameter is “taxable” https://woocommerce.github.io/code-reference/classes/WC-Cart.html#method_add_fee you can pass
false
to that.