MOVE TICKETS

Home Forums Ticket Products Event Tickets Plus MOVE TICKETS

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #967738
    anywherefest
    Participant

    Hi

    I have used your snippet in my functions.php to move the ticket box to below the event description but it isn’t working…I have deactivated and reactivated wootickets to no avail.

    Better still, I’d like to move it to below my featured image actually. I can’t seem to locate the single module code for tickets…any ideas? It would mean I’d then need to remove it from the modules too…

    An example event is here: https://anywherefest.com/myob

    May I also have a snippet to remove the Details & Organizer modules too?

    Many thanks!

    #967929
    Nico
    Member

    Hi Paul,

    Thanks for reaching out! Let me help you out with these issues.

    To move tickets below the featured image you should use the following code in your funcitons.php file:


    if (class_exists('TribeWooTickets')) {
    remove_action( 'tribe_events_single_event_after_the_meta', array( TribeWooTickets::get_instance(), 'front_end_tickets_form'), 5 );
    add_action( 'tribe_events_single_event_before_the_content', array( TribeWooTickets::get_instance(), 'front_end_tickets_form'), 5 );
    }

    The article you found was prematurely updated with the code that will work with upcoming release 3.10. Please remember to change the code to the one in the article if you update to WooCommerce Tickets 3.10.

    For removing Event Details & Organizers, you need to override the ‘modules/meta’ template. The process is simple, just copy the file ‘wp-content/plugins/the-events-calendar/views/modules/meta.php’ to ‘wp-content/themes/[your-theme]/tribe-events/modules/meta.php’. The go ahead and edit ‘meta.php’ in your theme, comment out line 28 to remove ‘Event Details’ and line 46 to do so with ‘Organizer’. You can find detailed information about template override in our Themer’s Guide.

    Please let me know if this works for you,
    Best,
    Nico

    #971789
    anywherefest
    Participant

    Thanks, I’m all sorted. Much appreciated!

    #971866
    Nico
    Member

    Hey Alex,

    Glad to hear, and sorry for calling you ‘Paul’ in my reply, ¯\_(ツ)_/¯. I’m going to close this topic – but please don’t hesitate to create new topics if you need help with anything else.

    Have a great week,
    Nico

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘MOVE TICKETS’ is closed to new replies.