Title: Dynamicly adding fields to shipping options
Last modified: October 5, 2016

---

# Dynamicly adding fields to shipping options

 *  [Mac](https://wordpress.org/support/users/zvendbendt/)
 * (@zvendbendt)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/dynamicly-adding-fields-to-shipping-options/)
 * **TL:DR How can i allow shopowners to dynamicly add fields on a shipping method,
   and save the data from those fields**
 * Hey SO,
 * I’m currently building a WooCommerce shipping plugin, and I’ve come a good way
   so far!
 * What I’m currently trying to accomplish is, allowing the shopowner to add fields
   dynamically for each of the shipping methods – coming with my plugin.
 * I want it to have the same behaviour that WooCommerce-Table-rate, is using when
   you add shipping prices ranges ([see picture](http://imgur.com/a/PvN8W))
 * I have looked a little at the code from WooCommerce, and i would like _NOT_ to
   have to mess with the Database – and use the WP_options. However i will go for
   what is the best possible solution, so I’m open for idea’s.
 * Hoping somebody can help me!

Viewing 1 replies (of 1 total)

 *  [kursora](https://wordpress.org/support/users/kursora/)
 * (@kursora)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/dynamicly-adding-fields-to-shipping-options/#post-8261978)
 * Saving configuration to wp_options and order data to wp_postmeta is best idea.

Viewing 1 replies (of 1 total)

The topic ‘Dynamicly adding fields to shipping options’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3640790)
 * [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

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

 * 1 reply
 * 2 participants
 * Last reply from: [kursora](https://wordpress.org/support/users/kursora/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/dynamicly-adding-fields-to-shipping-options/#post-8261978)
 * Status: not resolved