Title: Add County field
Last modified: May 28, 2021

---

# Add County field

 *  Resolved [amrevnc](https://wordpress.org/support/users/amrevnc/)
 * (@amrevnc)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/add-county-field/)
 * Hi. How do I add a “County” field in WooCommerce?
 * My situation is similar to a closed topic, “Tax Rates by County.” However, I 
   cannot use WooCommerce Tax, the answer in that case. It requires Jetpack, which
   prevents syncs with my fulfillment vendor through their plugin. (I have spent
   countless hours trying to solve the sync problem, and can’t wait any longer for
   a solution.)
 * Legally I only need to collect tax in one state (that is, I only have “nexus”
   there). Tax is set county by county. Zip codes cross county lines, so that does
   not work. The state does not provide a CSV of rates by city or address.
 * If I could manually add rates by county, that is manageable; hundreds of cities
   is not. I need a County field.
 * Thank you,
    Jim
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadd-county-field%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/add-county-field/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/add-county-field/page/2/?output_format=md)

 *  [Nicola Mustone](https://wordpress.org/support/users/nicolamustone/)
 * (@nicolamustone)
 * Automattic Happiness Engineer
 * [4 years, 12 months ago](https://wordpress.org/support/topic/add-county-field/#post-14492796)
 * Hello there,
    I understand that the conventional methods for calculating taxes
   are not working for you.
 * If you cannot use WooCommerce Services because of Jetpack, maybe you can try 
   [TaxJar](https://woocommerce.com/products/taxjar/) instead.
 *  [mtg169](https://wordpress.org/support/users/mtg169/)
 * (@mtg169)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/add-county-field/#post-14492812)
 * You actually don’t need Jetpack to use the WooCommerce Shipping & Tax plugin 
   if you’re only using it for taxes. It will nag you, but you can simply check “
   Enable taxes” under WooCommerce > Settings after installing and activating the
   plugin and then enter your rates for country, state, zip, and city. It will still
   calculate the taxes without Jetpack. Jetpack is only needed for printing shipping
   labels. I don’t know what state you live in, but I don’t see why that wouldn’t
   work without a county as it’s specific as possible. Adding the county would need
   to be something custom for the tax plugin as well as checkout for the customer
   to enter it.
 * TaxJar and Avalara are also popular alternatives that will file for you and update
   the rates automatically. The plugins are free, but using the service is not.
   
   [https://woocommerce.com/products/taxjar/](https://woocommerce.com/products/taxjar/)
   [https://woocommerce.com/products/woocommerce-avatax/](https://woocommerce.com/products/woocommerce-avatax/)
    -  This reply was modified 4 years, 12 months ago by [mtg169](https://wordpress.org/support/users/mtg169/).
 *  Thread Starter [amrevnc](https://wordpress.org/support/users/amrevnc/)
 * (@amrevnc)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/add-county-field/#post-14494550)
 * Thank you for the quick replies. I am aware of the paid services. However, I 
   see no reason to pay for them when I only need to pay taxes in one state, and
   could easily enable that if Woo provided a County field. Note that taxes also
   have to be *filed* on a county by county basis (in many states). As of now, I
   will have to manually determine each customer’s county. With a County field, 
   I could request it from the customer, and report it out of Woo with the rest 
   of the information.
 * Mtg169, that is very helpful about Jetpack and Tax. Is the same true for Woo 
   Payments, which also claims to require Jetpack?
 * Thank you,
    Jim
 *  [mtg169](https://wordpress.org/support/users/mtg169/)
 * (@mtg169)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/add-county-field/#post-14496166)
 * [@amrevnc](https://wordpress.org/support/users/amrevnc/) Woo Payments does require
   Jetpack. I’ve worked with thousands of Woo clients and never had any that used
   it for their payment options, but it’s only been out for a little over a year.
   I’ve had many that have had various issues due to using Jetpack. Things like 
   WordPress’ CDN loading slow, images not loading at all, etc.
 * Really Woo Payments just looks like a glorified version of the free Stripe plugin
   that brings reporting directly into WordPress. If you don’t want or need the 
   reporting within WordPress, the Stripe plugin will give you pretty much all of
   the same payment options without requiring Jetpack.
 *  Thread Starter [amrevnc](https://wordpress.org/support/users/amrevnc/)
 * (@amrevnc)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/add-county-field/#post-14496308)
 * Okay, that is great news! I will try switching out for Stripe and killing Jetpack
   this weekend in hopes of fixing the problem. I’ll leave this open until then 
   to reply with the results for future users.
 * Thank you very much, [@mtg169](https://wordpress.org/support/users/mtg169/)!
 *  Plugin Support [slash1andy](https://wordpress.org/support/users/slash1andy/)
 * (@slash1andy)
 * Automattic Happiness Engineer
 * [4 years, 12 months ago](https://wordpress.org/support/topic/add-county-field/#post-14496876)
 * [@mtg169](https://wordpress.org/support/users/mtg169/) [@amrevnc](https://wordpress.org/support/users/amrevnc/)
 * WooCommerce Taxes in this case is unique from the default WooCommerce tax setup
   page. It’s a separate plugin that ***does*** require Jetpack.
 * WooCommerce Payments is a tightly integrated payment gateway that is powered 
   by Stripe. It ***does not*** require Jetpack.
 *  [mtg169](https://wordpress.org/support/users/mtg169/)
 * (@mtg169)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/add-county-field/#post-14497606)
 * [@amrevnc](https://wordpress.org/support/users/amrevnc/)
    To clarify, I was stating
   to just enable the default tax options and enter the rates manually. The plugin
   and Jetpack is only needed if you want the rates to calculate automatically.
 * Regarding WooCommerce Payments, in the past it **\*did\*** require JetPack for
   the connection to WordPress.com. I see that it no longer does as stated in the
   documentation here: [https://docs.woocommerce.com/document/payments/faq/jetpack/](https://docs.woocommerce.com/document/payments/faq/jetpack/)
 *  Thread Starter [amrevnc](https://wordpress.org/support/users/amrevnc/)
 * (@amrevnc)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/add-county-field/#post-14504044)
 * Thank you for the clarification, [@mtg169](https://wordpress.org/support/users/mtg169/)
   and [@slash1andy](https://wordpress.org/support/users/slash1andy/). In that case,
   my original problem remains: I have to have a County field to make manual entry(
   and paying) of tax rates feasible. It does not have to be a lookup field initially;
   I can request manual entry of the field and do it myself if the customer doesn’t.
 * How do I add such a field?
 * Thank you,
    Jim
 *  Plugin Support [slash1andy](https://wordpress.org/support/users/slash1andy/)
 * (@slash1andy)
 * Automattic Happiness Engineer
 * [4 years, 11 months ago](https://wordpress.org/support/topic/add-county-field/#post-14504055)
 * Hey again!
 * In WooCommerce, it’s normally assumed that you would have tax rates by city/state/
   and post code.
 * If you’re looking for adding in and using another field, I would definitely recommend
   speaking with a developer to make that happen. We highly recommend contacting
   one of the services on our Customizations page ([https://woocommerce.com/customizations/](https://woocommerce.com/customizations/))
 *  [mtg169](https://wordpress.org/support/users/mtg169/)
 * (@mtg169)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/add-county-field/#post-14504512)
 * [@amrevnc](https://wordpress.org/support/users/amrevnc/) Without hiring a developer
   like myself, the easiest way to get a county field on checkout would be to use
   any of these plugins:
    [https://wordpress.org/plugins/woo-checkout-field-editor-pro](https://wordpress.org/plugins/woo-checkout-field-editor-pro)
   [https://woocommerce.com/products/woocommerce-checkout-field-editor](https://woocommerce.com/products/woocommerce-checkout-field-editor)
   [https://www.advancedcustomfields.com](https://www.advancedcustomfields.com) 
   [https://wordpress.org/plugins/flexible-checkout-fields/](https://wordpress.org/plugins/flexible-checkout-fields/)
 * Depending on the plugin, you may then need to use the woocommerce_cart_calculate_fees
   hook to conditionally add the taxes to the order based on the county. The pro
   version of the last plugin linked looks like it has conditional logic and pricing
   settings available that may let you do this easier.
 * Also, assuming you’re in North Carolina, the state does offer various rate files
   here:
    [https://www.ncdor.gov/taxes-forms/sales-and-use-tax/sales-and-use-tax-rates-other-information](https://www.ncdor.gov/taxes-forms/sales-and-use-tax/sales-and-use-tax-rates-other-information).
   I am not sure if there are any hooks or filters available to add a county field
   on the default tax inputs.
 *  Thread Starter [amrevnc](https://wordpress.org/support/users/amrevnc/)
 * (@amrevnc)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/add-county-field/#post-14505151)
 * Thank you, [@mtg169](https://wordpress.org/support/users/mtg169/) and [@slash1andy](https://wordpress.org/support/users/slash1andy/),
   but I had already talked by phone with NC Dept. of Revenue managers before I 
   started this thread. The state only provides rates by county in a PDF–refuses
   to provide a CSV–so I would have to manually type them in.
 * As for the lists by address, the state only provides the rate codes in one database
   CSV and the addresses in another one with millions of lines. A query has to be
   run to combine the rates with the addresses (the state refuses to provide a pre-
   combined one). A standard mid-priced laptop like everyone on my team has does
   not have the memory to run such a query.
 * Furthermore, after trying out the plugins [@mtg169](https://wordpress.org/support/users/mtg169/)
   mentioned and another I found, there was a fatal flaw in each case. To summarize:
   I also need “County” in the “Standard rates” table in Woo; only Advanced Customer
   Fields *might* do that, but you have to be a programmer to add the necessary 
   hooks in Woo; and the other plugins only modify the checkout field.
 * In short, if my product vendor can’t fix the problem with Woo, I’ll have to switch
   to a different shop platform.
 * Thank you for all of your time,
    Jim
 *  Plugin Support [Dani F. a11n](https://wordpress.org/support/users/danielinhou/)
 * (@danielinhou)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/add-county-field/#post-14514222)
 * Hi there [@amrevnc](https://wordpress.org/support/users/amrevnc/)
 * I have reviewed the whole thread and tried to find a pre-made solution that would
   work for you.
 * As WooCommerce Shipping & Tax is not a solution for you (because you can’t use
   Jetpack on your site), and city taxes are not an option… I guess that achieving
   this with custom code is your best bet if you want to keep using WooCommerce.
 * I’ll leave this thread open to see if somebody chimes in with any other alternatives.
 * Cheers!
 *  Thread Starter [amrevnc](https://wordpress.org/support/users/amrevnc/)
 * (@amrevnc)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/add-county-field/#post-14516369)
 * That was so kind of you, [@danielinhou](https://wordpress.org/support/users/danielinhou/)!
   Thank you for taking the time.
 * For the moment my sales volume is low enough (this is a new site) that I can 
   do manual workarounds. I agree that eventually I will have to pay for code that:
    - Adds the option of a County field in both the Billing form and the Standard
      Rates table, linked for rate lookups like the City/State combination now.
    - Allows a condition where it is only shown (or at least, only Required) in 
      the Billing form in selected states (that is, the states where I have tax 
      nexxus).
 * I will note that my state, and others I know of, only have local tax variations
   at the county level (not down to cities), so this would be a nice feature-add
   in WooCommerce for any small business like mine.
 * Best regards,
    Jim
 *  [mtg169](https://wordpress.org/support/users/mtg169/)
 * (@mtg169)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/add-county-field/#post-14517845)
 * [@amrevnc](https://wordpress.org/support/users/amrevnc/) Running a query to combine
   data from two database tables shouldn’t require a super computer. If it’s that
   slow, you may need to add indexes, but it’s only approximately 1,400 rows based
   on their PDF.
 * Additionally, you can easily copy/paste the data from the PDF into a spreadsheet
   for CSV import without manually typing or use a conversion tool. Here it is for
   you:
    [https://easyupload.io/yy1zic](https://easyupload.io/yy1zic)
 * Considering WooCommerce tax rate tables don’t support a county, you’re not going
   to be able to use them without modifying core functionality. Your best bet would
   probably be to import this data into a custom table and then apply a tax fee 
   based on a custom county field selection on checkout. I’d estimate it at about
   an hour.
 *  Thread Starter [amrevnc](https://wordpress.org/support/users/amrevnc/)
 * (@amrevnc)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/add-county-field/#post-14518099)
 * You are very kind to have done this, [@mtg169](https://wordpress.org/support/users/mtg169/).
   None of the tools I found were capable of extracting the PDF data as a correct
   CSV.
 * That said, I wasn’t specific enough. I was talking about the Rate and Data Boundary
   Databases, which offer several advantages, the biggest being that businesses 
   using them are not responsible for mistakes in the data (unlike the PDFs). However,
   one database has literally every address in the state, and thus has millions 
   of rows, as I said.
 * But I decided to take the risk with the County list and pay any penalties incurred,
   and the city list is more accurate than it, so you have reduced my risk. May 
   I ask what tool you used so I can update the list as rates change?
 * With much appreciation,
    Jim

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/add-county-field/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/add-county-field/page/2/?output_format=md)

The topic ‘Add County field’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [tax rates](https://wordpress.org/support/topic-tag/tax-rates/)

 * 16 replies
 * 6 participants
 * Last reply from: [B C. a11n](https://wordpress.org/support/users/battouly/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/add-county-field/page/2/#post-14576929)
 * Status: resolved