Home › Forums › Ticket Products › Event Tickets Plus › Selecting multiple options for one ticket
- This topic has 6 replies, 3 voices, and was last updated 10 years, 10 months ago by
Support Droid.
-
AuthorPosts
-
April 13, 2015 at 11:25 pm #955294
Cliff
ParticipantI just set up EDD Tickets — it’s AWESOME!
Question though: on my registration page (https://wasarcon.org/event/pre-conference-meals-lodging/) we want the ability to allow people to select which exact day they are going to stay on-site, and we want them to have the ability to select which days/meals they want.
Is this possible somehow?
Thank you!
CliffApril 14, 2015 at 7:40 am #955412George
ParticipantHey Cliff!
I’m glad you’ve been liking EDD Tickets so far, and hate to bear bad news, but unfortunately, at this time the extra features you mentioned are not possible without some extensive code customization.
If you know a bit about developing with WordPress, then you can quite far with simple using custom fields and related functions like get_post_meta(), and then combine this knowledge with the information from our official Themer’s Guide → https://theeventscalendar.com/knowledgebase/themers-guide/
Some good-ish news is that we have an add-on coming very very soon that makes adding custom per-user ticketing options like you mention here super simple to add, since we’ve had many people ask for features like this. Though we can’t quite promise anything as far as a release date, the add-on should be coming out within a few months at most if all stays according to plan – which it has so far.
Let us know what you think here! If you’re curious about get_post_meta() and adding/using/displaying information from custom fields, definitely give articles on the WordPress Codex like this one a read → https://codex.wordpress.org/Function_Reference/get_post_meta
— George
April 15, 2015 at 3:07 pm #955865Cliff
ParticipantGeorge,
Thank you for your (amazingly quick!) response.
Understood. As an alternative, if I could convert the text boxes to the left of the ticket options (with the “0” in them) into checkboxes, that would work for me. Is that possible using pre-built settings?
If not, do you know I could somewhat quickly get it done with some custom code?
Hopefully this is simpler than my original request.
Thank you,
CliffApril 17, 2015 at 8:16 am #956284George
ParticipantHey Cliff,
Thanks for being cool about the limitations of customizations here – and do stay tuned for the release of the Ticket User Meta add-on, coming soon! It should help a lot with your original question.
Now, as for your other question, you can change those quantity inputs on the left of the tickets, but this is not something related much to The Events Calendar or WooTickets themselves – these inputs are generated by WooCommerce core, as our plugins and add-ons leverage as much of the default eCommerce system as possible.
To be more specific, our own code just calls the woocommerce_quantity_input() function, which generates the inputs you see there with the “0” in them.
The actual HTML for those inputs comes from a WooCommerce template file, in templates/global/quantity-input.php in your WooCommerce plugin files. So, if you just create a theme-override version of this in your theme, and write a “checkbox” input type here instead of text/quantity, the customization is indeed possible.
To learn more about WooCommerce’s template-override system, which is very similar to ours, check out their official documentation here → http://docs.woothemes.com/document/template-structure/
This may take some fiddling around with to get just-right, as the two input types are different, but if you ensure the passed value attribute on the new checkbox input field is saved correctly by WooTickets, this should work fine as far as I can think.
I hope this helps! Play around with this for a bit and save your changes, and be sure to read through any WooCommerce and/or The Events Calendar documentation that might help here.
Cheers,
GeorgeApril 17, 2015 at 8:48 am #956297Cliff
ParticipantGeorge,
That makes sense! Thank you for the detailed reply. It is very helpful.
One more, hopefully quick, question before I leave you be: I’m not actually using WooCommerce but Easy Digital Downloads. I imagine the process is very similar to what you have outlined above, but, are there any differences I should be aware of when working with EDD as opposed to WooCommerce?
Thank you again,
CliffApril 21, 2015 at 8:03 pm #957212George
ParticipantI’m so sorry Cliff! Quite a slip there, really sorry about that.
The good news is that customizing the inputs from EDD is even a bit simpler than doing so for WooCommerce – but there is, indeed, quite a difference that is worth noting.
The tickets quantity input for EDD tickets is not generated from EDD, but rather is generated from right within our own “EDD Tickets” add-on itself – does that make sense? Where the Woo Tickets add-on pulls in some default code from WooCommerce itself, Easy Digital Downloads does not have a file that we can pull in like we can with WooCommerce.
So for EDD tickets, the input in question is located in /views/eddtickets/tickets.php in your own EDD Tickets plugin files. These views are quite customizable, and all of the principles in our official Themer’s Guide apply → https://theeventscalendar.com/knowledgebase/themers-guide/
Other than this template difference, things are the same – you can write custom code to replace those with checkboxes or whatever else you need.
I hope this helps! Sorry for that mistake Cliff!
Cheers,
GeorgeJuly 7, 2015 at 6:31 am #984049Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Selecting multiple options for one ticket’ is closed to new replies.
