Attendee Information not collected if using WooCommerce Shortcodes?

Home Forums Ticket Products Event Tickets Plus Attendee Information not collected if using WooCommerce Shortcodes?

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1097651
    Scott
    Participant

    I 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!

    #1098541
    Nico
    Member

    Hi 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,
    Nico

    #1098741
    Scott
    Participant

    Hi 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

    #1099165
    Nico
    Member

    Hey 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,
    Nico

    #1099889
    Scott
    Participant

    Thank you Nico. Looking forward to what you have to help. ๐Ÿ™‚

    – S

    #1100010
    Nico
    Member

    Hi 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,
    Nico

    #1100361
    Scott
    Participant

    Hello 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

    #1100899
    Nico
    Member

    Hey 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,
    Nico

    #1101720
    Scott
    Participant

    This reply is private.

    • This reply was modified 10 years ago by Scott.
    #1102154
    Nico
    Member

    This reply is private.

    #1102792
    Scott
    Participant

    Hi Nico,

    Sounds good, thank you.

    – S

    #1103030
    Nico
    Member

    Hi 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,
    Nico

    #1109114
    Support Droid
    Keymaster

    This 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.

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Attendee Information not collected if using WooCommerce Shortcodes?’ is closed to new replies.