Title: Can I change extra fee programmatically?
Last modified: March 30, 2021

---

# Can I change extra fee programmatically?

 *  Resolved [gchron](https://wordpress.org/support/users/gchron/)
 * (@gchron)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/can-i-change-extra-fee-programmatically/)
 * Hello is there a way to change the extra fee programmaticaly using a global variable
   or something?
 * I have different fees based on zip codes. I could use a script with ifs and pass
   the correct fee based on selected zip code.

Viewing 1 replies (of 1 total)

 *  Plugin Author [FullStack-ing](https://wordpress.org/support/users/fullstackhouse/)
 * (@fullstackhouse)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/can-i-change-extra-fee-programmatically/#post-14598722)
 * Yes you can!
    Use our filter `wc_smart_cod_fee`

Viewing 1 replies (of 1 total)

The topic ‘Can I change extra fee programmatically?’ is closed to new replies.

 * ![](https://ps.w.org/wc-smart-cod/assets/icon-128x128.png?rev=3372621)
 * [Smart COD for WooCommerce](https://wordpress.org/plugins/wc-smart-cod/)
 * [Support Threads](https://wordpress.org/support/plugin/wc-smart-cod/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-smart-cod/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-smart-cod/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-smart-cod/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [FullStack-ing](https://wordpress.org/support/users/fullstackhouse/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/can-i-change-extra-fee-programmatically/#post-14598722)
 * Status: resolved