Title: Confused over custom fields
Last modified: April 27, 2018

---

# Confused over custom fields

 *  Resolved [robnicholson](https://wordpress.org/support/users/robnicholson/)
 * (@robnicholson)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/confused-over-custom-fields/)
 * I’m rather confused over the way to add custom fields to the cart. I first added
   the code described here:
 * [http://docs.joedolson.com/my-tickets/2014/11/25/custom-field-api/](http://docs.joedolson.com/my-tickets/2014/11/25/custom-field-api/)
 * I stuck it in the theme’s function.php just to get it working. But nothing seemed
   to happen. But then I came across another post which directed me to here:
 * [https://github.com/joedolson/plugin-extensions](https://github.com/joedolson/plugin-extensions)
 * I’ve created the custom plugin and the “Code of conduct” field does indeed appear
   on the cart *but* the receipt has a reference to meal preference.
 * Do the two systems work together?

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

 *  Thread Starter [robnicholson](https://wordpress.org/support/users/robnicholson/)
 * (@robnicholson)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/confused-over-custom-fields/#post-10225307)
 * Hmm, even more confused now 🙂 I commented out the code in functions.php around
   meal preference but left the custom plug in. When I went through the purchase
   process again, the meal preference drop down appeared – even though I’d just 
   comment it out.
 * Is there some lag here?
 *  Thread Starter [robnicholson](https://wordpress.org/support/users/robnicholson/)
 * (@robnicholson)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/confused-over-custom-fields/#post-10225350)
 * Ohh hang on, light dawns – the first adds custom fields to each *ticket* and 
   the plugin customise the check out cart.
 * Might not work for my client anyway 🙁 They want to use it for ticket registration
   for runners at a race and need to record the details of each runner. That would
   only work if they only buy one ticket at a time.

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

The topic ‘Confused over custom fields’ is closed to new replies.

 * ![](https://ps.w.org/my-tickets/assets/icon-256x256.png?rev=1097581)
 * [My Tickets - Accessible Event Ticketing](https://wordpress.org/plugins/my-tickets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/my-tickets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/my-tickets/)
 * [Active Topics](https://wordpress.org/support/plugin/my-tickets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/my-tickets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/my-tickets/reviews/)

## Tags

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

 * 2 replies
 * 1 participant
 * Last reply from: [robnicholson](https://wordpress.org/support/users/robnicholson/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/confused-over-custom-fields/#post-10225350)
 * Status: resolved