Home › Forums › Ticket Products › Event Tickets Plus › WooTickets Registration – Extra fields
- This topic has 4 replies, 2 voices, and was last updated 11 years ago by Barry.
-
AuthorPosts
-
April 23, 2013 at 2:34 am #46591AshleyParticipant
We’re working on a site that hosts and sells tickets to one annual event. We need to base the checkout / registration form on their existing site – http://www.trialogue.co.za/assets/pdf/Conference%20registration%20form_2013.pdf
So the checkout process will require extra fields such as ‘delegate type’, ‘dietary requirements’, ‘preferred name on name tag’ and quite a few more. What would be the best way to capture these extra fields when purchasing a ticket?
Please note that there are also other products (not tickets) that are also sold on the site – these extra fields should only display and be captured when purchasing a ticket.
Would appreciate any advice on the best way to achieve this.
Thanks
April 23, 2013 at 6:47 am #46605AshleyParticipantI found most of what I was looking for in the WooCommerce codex – http://docs.woothemes.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/ . I’ve been able to add the specific fields I need to the checkout form.
However, we’ll need to display these extra fields only when purchasing an event ticket (and not the other products) – is there some sort of condition I could use to check whether the product being purchased is an event ticket?
Thanks.
April 23, 2013 at 6:53 am #46609BarryMemberHi Ashley,
This thread might be of interest here, it’s pretty long so you may want to jump to this entry which contains a snippet of code and the context of where to use it.
JP’s solution in that same thread could also be worth looking at 🙂
April 24, 2013 at 7:06 am #46720AshleyParticipantThanks Barry. Managed to solve this (by checking the current product ids in the $woocommerce cart object.)
April 24, 2013 at 7:13 am #46724BarryMemberGreat 😀
-
AuthorPosts
- The topic ‘WooTickets Registration – Extra fields’ is closed to new replies.