Home › Forums › Ticket Products › Event Tickets Plus › Attendee Information not collected if using WooCommerce Shortcodes?
- This topic has 12 replies, 3 voices, and was last updated 10 years ago by
Support Droid.
-
AuthorPosts
-
April 3, 2016 at 6:38 pm #1097651
Scott
ParticipantI would like to use Event Tickets Plus for selling tickets both on a Page dedicated for the event, as well as an additional Page dedicated to just registering for the event. The basic reason is the base page is pretty busy, so while I would like the tickets to be attached to this page – since its acting as the Event – I want to display the tickets on an additional page just for ease of visibility and clarity.
I added the tickets to a Page – not an actual Event – along with required Attendee Information and this works flawlessly if people register. On a separate page, I am using WooCommerce shortcodes to display the tickets so people can register off this page as well. However, I realized the required Attendee Information is not collected when adding these products to the cart.
Is there a way to collect required Attendee Information in this manner? If not, do you have an alternate solution to what I am trying to do?
Cheers!
April 5, 2016 at 12:27 pm #1098541Nico
MemberHi Scott,
Thanks for getting in touch with us. I can help you here…
Probably the best way to do this would be to include the tickets form via code. For example take a look at this snippet to include the tickets form in the events listing page:
/*
* Add tickets form to event listings
*/
if ( class_exists( Tribe__Tickets_Plus__Commerce__WooCommerce__Main ) ) {
add_action ( 'tribe_events_after_the_content', array( Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance(), 'front_end_tickets_form' ), 10 );
}
You can attach try to attach the form to a custom action fired from the ‘second’ page in which you want to include the form. Do you think you can manage to do so?
Please let me know about it,
Best,
NicoApril 5, 2016 at 7:04 pm #1098741Scott
ParticipantHi Nico,
Thank you for writing back and offering a solution. I have never really worked with creating custom actions, and am unsure where to start.
You can attach try to attach the form to a custom action fired from the โsecondโ page in which you want to include the form. Do you think you can manage to do so?
How would I go about doing this? Thanks!
– S
April 6, 2016 at 2:10 pm #1099165Nico
MemberHey Scott,
Thanks for following up and sorry for assuming you’d be able to do this! I’ll try to give this a spin myself tomorrow (I’m short of time today), and give you a heads up about it.
Best,
NicoApril 7, 2016 at 4:59 pm #1099889Scott
ParticipantThank you Nico. Looking forward to what you have to help. ๐
– S
April 8, 2016 at 6:23 am #1100010Nico
MemberHi Scott,
Thanks for the patience here! I gave the snippet a try and found other simpler approach.
Paste the following code in your theme’s (or child theme’s) functions.php, and replace both page IDs for the corresponding ones:
https://gist.github.com/niconerd/1cdaa530e4f5d84e8dfd8ddc0f84b967
Please give it a try and let me know,
Best,
NicoApril 8, 2016 at 8:17 pm #1100361Scott
ParticipantHello Nico,
Thank you for the update and for the code. This works like a charm!
One, hopefully, final question: how can I get the product image associated w/the ticket to display in that list?
It will be easier on the eyes, and to distinguish the different options, w/an image since there are so many ticket choices I need to present to potential event attendees.
Cheers!
– S
April 11, 2016 at 11:31 am #1100899Nico
MemberHey Scott,
Thanks for the update! So glad to hear this worked ๐
how can I get the product image associated w/the ticket to display in that list?
Well, for that you’ll need to create a template override of the tickets template – located at plugins/event-tickets-plus/src/Tribe/views/wootickets/tickets.php, you will also need to copy over the file plugins/event-tickets-plus/src/Tribe/views/meta.php as it’s required by tickets.php. All information related to this process can be found in our themer’s guide.
Please let me know about it,
Best,
NicoApril 12, 2016 at 7:44 pm #1101720April 13, 2016 at 2:24 pm #1102154Nico
MemberThis reply is private.
April 14, 2016 at 5:07 pm #1102792Scott
ParticipantHi Nico,
Sounds good, thank you.
– S
April 15, 2016 at 8:37 am #1103030Nico
MemberHi Scott,
Sorry, I thought you had troubles with the script I’ve sent and I was troubleshooting it locally… but giving your issue description a second look this seems to a different problem. Sorry for the confusion here.
From what you describe (and because you sent an event not a page) I guess this is an issue with the attendee meta itself not getting saved. As this is a different issue we will need to get back to troubleshooting. Can you please follow the steps described in our Testing for conflicts guide? This way we can see if this is a problem in our plugin or a conflict with the theme or other installed plugins. Also, are you running latest version of the plugins?
Please let me know if I’m following you correctly here,
Best,
NicoApril 30, 2016 at 9:35 am #1109114Support 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 ‘Attendee Information not collected if using WooCommerce Shortcodes?’ is closed to new replies.
