Nico

Forum Replies Created

Viewing 15 posts - 5,176 through 5,190 (of 6,506 total)
  • Author
    Posts
  • Nico
    Member

    Hey Chris,

    Thanks for you patience on this! The complete code is the following:

    if ( class_exists( 'Tribe__Events__Tickets__Woo__Main' ) ) {

    $woo_tickets = Tribe__Events__Tickets__Woo__Main::get_instance();

    remove_action( 'woocommerce_email_after_order_table', array( $woo_tickets, 'add_tickets_msg_to_email' ) );

    add_action( 'woocommerce_email_after_order_table','custom_add_tickets_msg_to_email', 10, 2 );

    function custom_add_tickets_msg_to_email( $order ) {

    $order_items = $order->get_items();

    // Bail if the order is empty or refunded
    if ( empty( $order_items) || $order->get_total_refunded() != NULL ) {
    return;
    }

    $has_tickets = false;

    // Iterate over each product
    foreach ( (array) $order_items as $item ) {

    $product_id = isset( $item['product_id'] ) ? $item['product_id'] : $item['id'];

    // Get the event this tickets is for
    $event_id = get_post_meta( $product_id, '_tribe_wooticket_for_event', true );

    if ( ! empty( $event_id ) ) {
    $has_tickets = true;
    break;
    }
    }

    if ( ! $has_tickets ) {
    return;
    }

    echo '<br/>' . apply_filters( 'wootickets_email_message', __( "You'll receive your tickets in another email.", 'tribe-wootickets' ) );
    }
    }

    Basically it detects if there’s a refunded amount other tan NULL, in which case it doesn’t display the message.

    Please give it a try and let me know if it works as expected,
    Best,
    Nico

    in reply to: Sales Order Reports missing orders? #1033418
    Nico
    Member

    This reply is private.

    in reply to: Duplicate tickets and specific price for groups #1033386
    Nico
    Member

    Hey Arturo,

    I’m seeing you marked my previous reply as correct, so I’ll go ahead and close 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.

    Best,
    Nico

    in reply to: Events View Admin order by Publishing Date ? #1033349
    Nico
    Member

    Hey Marco,

    Thanks for following-up! THis is what you should see in the Events section of the WP-Admin: https://cloudup.com/c6tbEjCjLKr

    Just installed APM myself to check on that, after installing I was seeing the panel in the Events listing. Do you have Events Calendar PRO enabled on the site? Latest version?

    Please let me know about it,
    Best,
    Nico

    in reply to: Titles Not Showing #1033342
    Nico
    Member

    Howdy Jannifer,

    Welcome to our support forums and thanks for reaching out to us. I’ll help you figuring out what’s happening here…

    From what I could see in the site, this is a styling issue. Add the snippet below to your theme’s stylesheet or via Simple Custom CSS plugin:


    .tribe-events-list-event-title a {
    display: block;
    }

    Please give that fix a try and let me know,
    Best,
    Nico

    in reply to: Event Pages not showing #1033334
    Nico
    Member

    Howdy Luis,

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

    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, were events working at some point or you could never make the calendar work?

    Please let me know about your findings,
    Best,
    Nico

    in reply to: Events and SEO #1033332
    Nico
    Member

    This reply is private.

    in reply to: Saved tickets not visible on back or front end #1033325
    Nico
    Member

    Hey Emilio,

    Thanks for jumping in here too!

    Let’s see if Robert can confirm if disabling translations for the product post-type helps. Could you try that yourself?

    Best,
    Nico

    in reply to: mouse over pop up on recurring event shows wrong date #1033318
    Nico
    Member

    Hey Simon,

    Thanks for following-up with the screenshots! That looks buggy for sure 🙁

    Can you send me the recurrence settings (the event edit screen in the back-end) for this event: https://cloudup.com/inhN1Z3etZa ? With that info I’ll try to re-create the issue locally and confirm if it’s a bug or not.

    Thanks,
    Nico

    in reply to: Sales Order Reports missing orders? #1032630
    Nico
    Member

    This reply is private.

    Nico
    Member

    Hey @tjkelly,

    Glad you could finally import those events 🙂

    Regarding the auto-import, that seems to be a different issue which will require a new round of trouble shooting to begin with.

    Please set up a simple Google Calendar of your own with a some events, then set up an auto-import to run every 30 minutes and add a couple new events after the initial import. Bear in mind, that WordPress cron might not work as true cron as described in the article iCal Importer and WordPress scheduled tasks.

    Let me know about your findings and we’ll try to get to the bottom of this issue,
    Best,
    Nico

    Nico
    Member

    Nice Chris!

    1) Yes! I would ideally like to remove this message as it would not longer be relevant.

    Diving into the code revealed the message is added to the order email which is the same for a complete order or a refunded one. To remove the message from all emails use the code below.

    remove_action( 'woocommerce_email_after_order_table', array( 'Tribe__Events__Tickets__Woo__Main', 'add_tickets_msg_to_email' ) );

    If you want to keep the message for complete orders but not refunded ones, let me know and we can hook a modified add_tickets_msg_to_email to address this!

    Best,
    Nico

    in reply to: Saved tickets not visible on back or front end #1032315
    Nico
    Member

    Robert,

    Thanks for following up once again 🙂

    Is there a way to disable the translations just for WooTickets or is the only way to disable it for all Woo Products?

    I guess not as translation is set by post type and Event Ticket are regular woo products. So not possible to disable it just for tickets.

    I was actually unable to find anywhere an option to disable/enable translations for products.

    Take a look at this article from WPML, it’s about enabling and not disabling but I guess you’ll get the point: https://wpml.org/faq/how-to-translate-custom-types/

    Best,
    Nico

    in reply to: Split payments Currency conflict #1032310
    Nico
    Member

    Hey Uroš,

    Thanks for following up once again! I’ve un-marked the “correct answer” here.

    Payment happens and everything is OK at Paypal sandbox accounts, but the status at User account is at Pending Payment with Pay, Cancel and View buttons. The order is recorded in Admin area as pending but not at Attendees and Sales reports of Receiver.

    So the issue here is that the payment is somehow not getting trough? The rest of the behavior is the expected as the payment is pending or do you notice any difference? If you manually complete the order from WooCommerce, does it show up in attendees and sales report?

    Yeap, definitively strange thing if this was working as expected. If this behavior continues please send me detailed steps to reproduce this locally so I can check if it’s not working as expected on my end as well.

    Best,
    Nico

    in reply to: Página de inicio lentísima #1032307
    Nico
    Member

    Antonio,

    Gracias por los detalles! Sigo sin entender bien que es lo que esta generando esto. Podrías checkear los errores en log cuando sucede el error 500?

    Es posible que pruebes esto con el tema 2015 (defecto de WordPress) y sin otros plugins activos? o esta configuración de home solo es posible con Divi? Pudiste activar Query Monitor para buscar las queries lentas que esta generando el shortcode?

    Saludos,
    Nico

Viewing 15 posts - 5,176 through 5,190 (of 6,506 total)