Title: Adding custom checkout fields without plugin
Last modified: August 21, 2016

---

# Adding custom checkout fields without plugin

 *  Resolved [jjumbla](https://wordpress.org/support/users/jjumbla/)
 * (@jjumbla)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/adding-custom-checkout-fields-without-plugin/)
 * Hi there,
    anyone can help me on how to add custom checkout field(s) without 
   using a plugin?
 * I know there is a premium plugin that can do this, but since I only need 1 field,
   I think buying a plugin might be an overkill.
 * The custom field that I need is just 1 checkbox. I want to be able to add the
   custom fields from my theme’s functions.php so that I don’t have to override 
   the plugin code. What action hooks and functions do I need? Can anyone provide
   an example please?
 * Thanks! 🙂
 * [https://wordpress.org/plugins/jigoshop/](https://wordpress.org/plugins/jigoshop/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [alimoshen](https://wordpress.org/support/users/alimoshen/)
 * (@alimoshen)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/adding-custom-checkout-fields-without-plugin/#post-4956744)
 * Any ideas anyone? I am looking for the same, I actually purchased that plugin
   but it breaks with the latest version of Jigoshop. Luckily Jigoshop came up with
   a new version for the custom checkout fields but they didn’t bother to test it
   and it doesn’t work 🙂
 *  [Jeff](https://wordpress.org/support/users/divergeinfinity/)
 * (@divergeinfinity)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/adding-custom-checkout-fields-without-plugin/#post-4956745)
 * add_filter( ‘jigoshop_shipping_fields’, ‘egmont_shipping_fields’ );
    add_filter(‘
   jigoshop_billing_fields’, ‘egmont_billing_fields’ );
 * Look in the file jigoshop/classes/jigoshop_checkout.class.php and you can find
   the two functions:
 * function get_billing_fields()
    function get_shipping_fields()
 * copy and paste them into your functions.php, rename them, use the filters I listed
   initally with the new function names … and alter the functions to provide the
   fields you want.
 * Easy peasy.
 * Be advised, the field names have changed in the newly released 1.10 so I use 
   something like this for each field:
 *     ```
       return array(
       		array(
       			'name'          => jigoshop::jigoshop_version() < '1.10' ? 'billing-first_name' : 'billing_first_name',
       			'label'         => __('First Name', 'jigoshop'),
       			'placeholder'   => __('First Name', 'jigoshop'),
       			'required'      => true,
       			'class'         => array('form-row-first') ),
       ```
   
 * This tests for jigoshop version and uses different field names to match version.
   Most all the field names have changed, so do it for each.
 *  [megawebmaster](https://wordpress.org/support/users/megawebmaster/)
 * (@megawebmaster)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/adding-custom-checkout-fields-without-plugin/#post-4956746)
 * [@jeff](https://wordpress.org/support/users/jeff/) – please be aware that lexical
   checking will fail: use version_compare(jigoshop::jigoshop_version(), ‘1.10’,‘
   <‘) instead.
 * This is the right thing way of adding fields. Of course you need to save them
   by yourself – Jigoshop processes only it’s own fields.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Adding custom checkout fields without plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jigoshop_655549.svg)
 * [Jigoshop](https://wordpress.org/plugins/jigoshop/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jigoshop/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jigoshop/)
 * [Active Topics](https://wordpress.org/support/plugin/jigoshop/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jigoshop/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jigoshop/reviews/)

## Tags

 * [checkout](https://wordpress.org/support/topic-tag/checkout/)
 * [custom fields](https://wordpress.org/support/topic-tag/custom-fields/)

 * 3 replies
 * 4 participants
 * Last reply from: [megawebmaster](https://wordpress.org/support/users/megawebmaster/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/adding-custom-checkout-fields-without-plugin/#post-4956746)
 * Status: resolved