Nico

Forum Replies Created

Viewing 15 posts - 3,181 through 3,195 (of 6,506 total)
  • Author
    Posts
  • in reply to: Get attendee ids from order_id #1140247
    Nico
    Member

    Hi Dylan,

    Thanks for getting in touch with us! Interesting question here…

    Take a look to the function below, I modified the code of a similar snippet. It will extract event_ids from an order and then extract all attendee info for those events:

    /* Return all attendees for events in a WooCommerce order */
    function tribe_order_extract_attendees ( $order_id ) {

    $order = new WC_Order ( $order_id );
    $line_items = $order->get_items( apply_filters( 'woocommerce_admin_order_item_types', 'line_item' ) );
    $product_ids = array();
    $event_objects = array();
    $attendees = array();

    if ( ! is_array( $line_items ) || empty( $line_items ) ) {
    return $attendees;
    }

    foreach ( $line_items as $line_item ) {
    $product_id = absint( $line_item['item_meta']['_product_id'][0] );

    if ( ! $product_id || in_array( $product_id, $product_ids ) ) {
    continue;
    }

    $event_object = tribe_events_get_ticket_event( $product_id );

    if ( ! empty( $event_object ) ) {
    $event_objects[] = $event_object;
    }
    }

    foreach ( $event_objects as $event_object ) {

    $tickets = Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance();

    $event_attendees = $tickets->get_event_attendees( $event_object->ID );

    $attendees = array_merge ( $attendees, $event_attendees );
    }

    return $attendees;
    }

    Is this what you are looking for? If not please let me know about it and we can tweak the function code.

    Best,
    Nico

    in reply to: Does The Events Calendar (standard) allow #1140238
    Nico
    Member

    Hi there Steve,

    Thanks for getting in touch!

    Additional fields are a feature of Events Calendar PRO and not included in core. Depending in what you are trying to achieve you can use another solution: built-in WordPress custom fields, ACF plugin or similar ones.

    Please let me know if this answers your question,
    Best,
    Nico

    in reply to: Translation not working #1140237
    Nico
    Member

    Howdy Marlene,

    Welcome to our support forums and thanks for reaching out to us!

    Can you please let me know which language you are trying to use? Are you trying to override the default translation?

    In case you are just trying to switch the site language there’s no need to download and move the translation files, just setting the appropriate language in WP-Admin > Settings > General should do the trick.

    Best,
    Nico

    in reply to: same issue (maybe) #1140236
    Nico
    Member

    Hi Fabian,

    Thanks for reaching out and sorry for the havoc created by this bug. We rushed to release a hotfix for this โ†’ Events Calendar PRO 4.2.2.1.

    Please update PRO to 4.2.2.1 and to help out with the clean up there’s a handy plugin you can find in the release notes.

    Hope that helps to get back to normal,
    Best,
    Nico

    Nico
    Member

    Hey Martin,

    Thanks for the report and sorry to hear about this issue ๐Ÿ™

    I could confirm in my local install that indeed saving the ticket in WooCommerce (this doesn’t to be related with the product image) wipes the Venue and Organizer set for the event. I’m not experiencing the ‘end sales’ field glitch you comment but it might be a side effect of this bug.

    I just logged this issue as a high priority bug, I’m not sure when we will be able to slip this in but I don’t think it will be included in the upcoming maintenance release as we are pretty close to the release date early next week. I’m attaching your thread to the report so you’ll get a heads-up when the fix is released.

    Can you please re-check on the ‘sales end date’ to see if it’s happening consistently? It would be great if you could share your system information so I can check if date or datepicker settings are causing this.

    Sorry for the hassle until fixed and thanks once again for the report,
    Best,
    Nico

    in reply to: moving title map view #1140048
    Nico
    Member

    Hi there,

    Glad to help you once again ๐Ÿ™‚

    To make this change you’ll need to create two template overrides for the files: event-calendar-pro/src/views/pro/map/content.php and event-calendar-pro/src/views/pro/map/gmap-container.php. Once the copy of those files is in your theme folder go ahead and ‘cut’ the following block from the content.php file (line 19):




    Save the file and now paste this block into gmap-container.php in line 15! That’s it!

    Please give this a try and let me know if you can make it work,
    Best,
    Nico

    in reply to: Decimal Separator #1140041
    Nico
    Member

    Stocked to hear Martin! Thanks for the kind words ๐Ÿ™‚

    Do I need to watch it when the update comes to make sure the update doesnโ€™t change anything here?

    Plugin updates shouldn’t make this customization go south (be sure to check it once in a while though), but if you are not using a child theme and the theme receives an update then it might override the functions.php file and the snippet will be wiped out. You can create a child theme to address this or use a plugin like Code Snippets to store snippets.

    I’ll log this bug but I’m not sure when it will be fixed so stay tuned to our upcoming release notes! Iโ€™m closing out this thread, but if you need help with anything else please donโ€™t hesitate to create a new one and we will be happy to assist you.

    Have a great weekend,
    Nico

    in reply to: Cannot Add Images to Events Widget #1140040
    Nico
    Member

    Thanks for following up Aaron and sorry to hear this is still an issue for you, but I’m sure we will get this right!

    Can you please try to empty (delete all code) from the ‘single-event.php’ file and reload the page to see if the widget still shows up or not? This will tell us if the template override is working or not!

    Also please note that the file size is showing as ‘0 bytes’ for the uploaded ‘single-event.php’, and make sure that optimizer_pro is the active theme!

    Thanks,
    Nico

    in reply to: Move Ticket Form from Sidebar to Main Area #1140036
    Nico
    Member

    Thanks for the report Eric, it should be fixed now for some reason it was set as draft (this is why I was able to see it but you didn’t) so re-publishing the KB article should make ir right again. Please re-check and sorry for the hassle!

    The snippet should go in your theme’s (or child theme’s) functions.php file, be sure to read the instructions in the code to make it work for your e-commerce platform.

    Best,
    Nico

    in reply to: Premature closure of the ticket. Calling Nico! #1140034
    Nico
    Member

    This reply is private.

    in reply to: Google maps showing on some events not others #1140029
    Nico
    Member

    You are welcome Catherine! Glad to hear we are close to solve this ๐Ÿ™‚

    Do you want to enable this for every event in your site? In case not, is there a rule or pattern to identify which events to modify?

    Please let me know about it and I’ll craft a snippet to bulk update all events.

    Best,
    Nico

    in reply to: Day of the week not showing up #1140028
    Nico
    Member

    Hi Cynthia,

    Thanks for reaching out to us! Unfortunately we are not able to provide support in the pre-sales forum ๐Ÿ™

    We are happy to assist our premium users with support issues via our premium forums, please log into the account that has been created when the purchase was made. If you have not purchased one of our premium plugins, you can post in our open source forum. We review that forum weekly, mainly for bug reports.

    Iโ€™ll go ahead and close out this thread, but please do post in the appropriate forum and we will be happy to assist you.

    Best,
    Nico

    in reply to: Move Ticket Form from Sidebar to Main Area #1139941
    Nico
    Member

    Hi Eric,

    Thanks for getting in touch! The URL is working for me โ†’ https://theeventscalendar.com/knowledgebase/moving-the-ticket-form/

    Just in case I’ll paste the snippet in the article:

    /*
    * Moves the front-end ticket purchase form, accepts WP action/hook and optional hook priority
    *
    * @param $ticket_location_action WP Action/hook to display the ticket form at
    * @param $ticket_location_priority Priority for the WP Action
    */
    function tribe_etp_move_tickets_purchase_form ( $ticket_location_action, $ticket_location_priority = 10 ) {
    if ( ! class_exists( 'Tribe__Tickets__Tickets') ) return;
    $etp_classes = array(
    'Easy_Digital_Downloads' => 'Tribe__Tickets_Plus__Commerce__EDD__Main',
    'ShoppVersion' => 'Tribe__Tickets_Plus__Commerce__Shopp__Main',
    'WP_eCommerce' => 'Tribe__Tickets_Plus__Commerce__WPEC__Main',
    'Woocommerce' => 'Tribe__Tickets_Plus__Commerce__WooCommerce__Main',
    'Tribe__Tickets__Tickets' => 'Tribe__Tickets__RSVP',
    );
    foreach ( $etp_classes as $ecommerce_class => $ticket_class) {
    if ( ! class_exists( $ecommerce_class ) || ! class_exists( $ticket_class ) ) continue;
    $form_display_function = array( $ticket_class::get_instance(), 'front_end_tickets_form' );
    if ( has_action ( 'tribe_events_single_event_after_the_meta', $form_display_function ) ) {
    remove_action( 'tribe_events_single_event_after_the_meta', $form_display_function, 5 );
    add_action( $ticket_location_action, $form_display_function, $ticket_location_priority );
    }
    }
    }
    /*
    * TO MOVE THE TICKET FORM UNCOMMENT ONE OF THE FOLLOWING BY REMOVING THE //
    */
    /*
    * Uncomment to Move Ticket Form Below Related Events
    */
    //tribe_etp_move_tickets_purchase_form( 'tribe_events_single_event_after_the_meta', 20 );
    /*
    * Uncomment to Move Ticket Form Below the Event Description
    */
    //tribe_etp_move_tickets_purchase_form( 'tribe_events_single_event_after_the_content', 5 );
    /*
    * Uncomment to Move Ticket Form Above the Event Description
    */
    //tribe_etp_move_tickets_purchase_form( 'tribe_events_single_event_before_the_content' );

    Please let me know if you can access it now,
    Best,
    Nico

    in reply to: Calendar not displaying reoccurring events properly #1139938
    Nico
    Member

    Hi there Pascha,

    Thanks for getting in touch with us ๐Ÿ™‚

    Unfortunatelly our EventBrite tickets plugin doesn’t support EventBrite recurring events (this is noted in the product page under more information section): Please note that due to a limitation with the Eventbrite API, Eventbrite Tickets unfortunately does not support recurring events at this time..

    Recurring events (in the WordPress events settings) are a feature of Events Calendar PRO, but in any case we still don’t support tickets functionality for recurring events (whether tickets are imported from EventBrite or created with Event Tickets or Event Tickets Plus).

    If you think this is a showstopper your using our plugin, you can go ahead and ask for a refund within 30 days of purchase using this refund form.

    Best,
    Nico

    in reply to: Nofollow on events, organizers and venues #1139933
    Nico
    Member

    Hi there Omar,

    Thanks for reaching out to us on this! I’ll help you getting this done ๐Ÿ™‚

    Iโ€™ve tried it with the solution posted about setting nofollow on outgoing links to event organizer websites, but the code wonโ€™t work for internal nofollows.

    Can you please point me to this solution?

    Also, Can you please specify in which screens you want to achieve this? It might need various template overrides if you want to do this for all single event links across the calendar (check more details in the themer’s guide).

    Please let me know about it,
    Best,
    Nico

Viewing 15 posts - 3,181 through 3,195 (of 6,506 total)