WooCommerce, Remote Work & Other Fancy Stuff

Just another WordPress site

WooCommerce & Colorado Retail Delivery Fee

June 17, 2022 by Will 2 Comments

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?

Filed Under: WooCommerce Tagged With: snippet, snippets

Comments

  1. Karie says

    July 7, 2022 at 8:31 pm

    This is super helpful! Any idea how to not have tax added on top of this delivery fee?

    Log in to Reply
    • Will says

      July 7, 2022 at 8:42 pm

      The 3rd parameter is “taxable” https://woocommerce.github.io/code-reference/classes/WC-Cart.html#method_add_fee you can pass false to that.

      Log in to Reply

Leave a Reply Cancel reply

You must be registered and logged in to post a comment.

© 2022 ยท WooCommerce, Remote Work & Other Fancy Stuff · Epstein didn't kill himself