Sending a tickets email after a shop buy.

Home Forums Ticket Products Event Tickets Plus Sending a tickets email after a shop buy.

Viewing 10 posts - 16 through 25 (of 25 total)
  • Author
    Posts
  • #1117889
    Cowowo S.L
    Participant

    This reply is private.

    #1117983
    Cliff
    Member

    The email gets sent from the code in this file: /wp-content/plugins/event-tickets-plus/src/Tribe/Commerce/WooCommerce/Email.php

    However, you said:

    When I sell that membership, it sends the empty ticket email and it should not because it is a product, not a ticket.

    We haven’t seen similar reports from those using other membership plugins so I’m unsure how best to advise you with this specific plugin.

    #1118135
    Cowowo S.L
    Participant

    ok, I will try it.
    I’ve seen the variables of the array tickets[].
    ‘event_id’ => get_post_meta( $post->ID, $wootickets->atendee_event_key, true ),
    ‘product_id’ => $product->ID,
    ‘ticket_name’ => $product->post_title,
    ‘holder_name’ => get_post_meta( $this->object->id, ‘_billing_first_name’, true ) . ‘ ‘ . get_post_meta( $this->object->id, ‘_billing_last_name’, true ),
    ‘order_id’ => $this->object->id,
    ‘ticket_id’ => $post->ID,
    ‘security_code’ => get_post_meta( $post->ID, $wootickets->security_code, true ),

    How can I add a custom field here (artist)? And the price of the ticket?

    Thanks

    #1118309
    Cliff
    Member

    I discovered this was an issue that was resolved as of Event Tickets Plus 4.1.2, and your system report was only at version 4.1.

    Therefore, please make sure all your Modern Tribe plugins (and WordPress core) are at their latest versions:

    Once you verify you’re on the latest versions, please test to see if the issue is still happening for you.

    If it is, please follow our Testing for Conflicts Guide and see if that helps narrow down the cause of this.

    If it doesn’t, would you mind enabling WP_DEBUG and sharing any messages you see while navigating your site’s home page, events page, single-event pages, and any other of your site’s pages relevant to this ticket?

    Thanks.

    #1118317
    Cowowo S.L
    Participant

    This reply is private.

    #1118819
    Cliff
    Member

     

    Let’s resolve the first issue first, but this snippet may help with your email customization if you are using PRO’s Additional Fields (not ACF):

    https://gist.github.com/cliffordp/4912b6e0e5ffc67e312264336f1218b8

    #1119065
    Cowowo S.L
    Participant

    This reply is private.

    #1119240
    Cliff
    Member
    1. Follow PRO Additional Fields to add a custom field like “Artist” text field to each of your events.
    2. The code snippet I just provided you can be used or modified to get the Artist field’s value.
    3. You’ll need to determine where to put that code to implement your customization.

    If you need further coding help, you may want to ask your developer or reference our list of known customizers.

    #1120306
    Cowowo S.L
    Participant

    This reply is private.

    • This reply was modified 9 years, 11 months ago by Cowowo S.L.
    #1120347
    Cliff
    Member

    Please understand that we want to help as best we can without providing full custom code implementations for customers’ questions, as stated previously.

    At this point, you’ll need to ask your developer or consult our list of known customizers to finish with this customization.

    If you need additional assistance, please feel free to open a new thread.

    Thanks a lot for your understanding.

Viewing 10 posts - 16 through 25 (of 25 total)
  • The topic ‘Sending a tickets email after a shop buy.’ is closed to new replies.