Move Ticket Box before Meta does not work

Home Forums Calendar Products Community Events Move Ticket Box before Meta does not work

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1034335

    Hey guys,

    I would like to move my ticket form before the meta boxes.
    I found the Knowledgebase article describing it:
    https://theeventscalendar.com/knowledgebase/moving-the-ticket-form/

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

    However, this does not seem to work anymore, my ticket box is still showing up at the bottom of the page.

    Any ideas on how to fix this?!

    #1035013
    Nico
    Member

    Howdy Lukas,

    Welcome to our support forums and thanks for reaching out to us. I’ll try to help you getting this right again 🙂

    First of all I’ve tested this locally and it’s working for me. I guess the code might not be in the right place (Can you check it’s in the functions.php file of your active theme -or child theme-) or maybe you haven’t installed/updated the correct plugins (The Events Calendar, Events Calendar PRO, Event Tickets, Event Ticket Plus and WooCommerce), please send me over your system information so I can check on that (you can send it in a private reply).

    Other way of checking on this is to follow the steps described in our Testing for conflicts guide, and adding the snippet temporarily to the functions.php file of the TweentyFifteen defualt theme.

    Please let me know about this,
    Best,
    Nico

    #1035213

    Hey Nico,

    thanks for your reply! Unfortunately the issue still exists.
    The code is located in the functions.php of my current active child-theme.
    Also when activating the twentyfifteen Theme and adding the code to its functions.php, the order does not change.

    I’ve installed both The Events Calendar and the Events Calendar WooCommere Plugin.

    I’ll attach my system information in a private reply.

    The page where the problem occurs is the following:
    km.fngrl.de/veranstaltungen

    #1035214

    This reply is private.

    #1035593
    Nico
    Member

    Hey Lucas,

    Thanks for following-up with the system info! Now I can see what’s going on here!

    The code provided in the article is intended to be use with our new plugin Event Tickets Plus which replaces the functionality of WooTickets (and the other ticketing plugins). More info on this: Moving to Event Tickets Plus.

    If you decide not to update (yet), the code for this to work with WooTickets, it’s:

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

    Please give it a try and let me know,
    Best,
    Nico

    #1036215

    Hi Nico,

    that works great. When did you release the new plugin though…. I just bought WooCommerce tickets a week ago and am a little bit sad I didn’t get the new plugin…
    Is it possible to change my license to Event Tickets Plus?

    #1036862
    Nico
    Member

    Hey Lukas,

    Glad the code worked as expected 🙂

    Release: The Events Calendar Version 4.0 + all add-ons was out on December 2, just a few days ago. All WooTickets license holders are automatically given a Event Tickets Plus license (with the same expiration date) to do the switch to our new plugin. You should be able to download the plugin in ‘My Account > Downloads’ from the top menu in this site. If you are going to migrate from WooTickets to Event Tickets Plus, this article can be of help: Moving to Event Tickets Plus.

    Please let me know if there’s anything else I can help you with,
    Best,
    Nico

    #1075968
    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 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Move Ticket Box before Meta does not work’ is closed to new replies.