Forum Replies Created
-
AuthorPosts
-
Karl EdyParticipant
Yes this might be the problem..
Karl EdyParticipantHi Jennifer,
thanks for your reply.
Yes i am able to see the tickets on the attendee page.
They just do not get attached to the emails.i also did a conflict test. no plugin and no theme seems to be conflicting..
any idea?
thanks, Thomas
Karl EdyParticipantI do not get data with $ticket[‘order_id_display’] …
Karl EdyParticipantHi please delete my previous answer. this was Carmens fault.
And no, that doesn’t solve the problem..
Karl EdyParticipantThank you, but that doesn’t suit my needs.
Yes your solution avoids the error, but I need the paymentmethod on the ticket. Also on the PDF ticket.
do you have another workaround for me?
thank you in advance!
Karl EdyParticipantHi Barry,
At first, thank you for your help!
I managed to get the payment method working in the ticket email, but now i get an error if i want to “Download a PDF copy of this ticket”. I have the tribe-ext-view-tickets plugin installed.
error:
Fatal error: Uncaught Error: Call to a member function get_data() on boolean in /home/.sites/856/site2268/web/wp-content/themes/unite/tribe-events/tickets/email.php:320 Stack trace: #0 /home/.sites/856/site2268/web/wp-content/plugins/event-tickets/src/template-tags/tickets.php(574): include() #1 /home/.sites/856/site2268/web/wp-content/plugins/event-tickets/src/Tribe/Tickets.php(1264): tribe_tickets_get_template_part(‘tickets/email’, NULL, Array, false) #2 /home/.sites/856/site2268/web/wp-content/plugins/tribe-ext-view-tickets/index.php(160): Tribe__Tickets__Tickets->generate_tickets_email_content(Array) #3 /home/.sites/856/site2268/web/wp-includes/class-wp-hook.php(298): Tribe__Extension__View_Print_Tickets->show_ticket_page(”) #4 /home/.sites/856/site2268/web/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #5 /home/.sites/856/site2268/web/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #6 /home/.sites/856/site2268/web/wp-settings.php(469): do_action(‘wp_loaded’) #7 /home/.sites/856/site22 in /home/.sites/856/site2268/web/wp-content/themes/unite/tribe-events/tickets/email.php on line 320
it seems to increment the tribe_view_ticket_order by 1 if i want to download the ticket.
as seen in the url: /?tribe_view_ticket_order=2294&tribe_pdf_ticket=truehere is the code on line 320 in my email.php:
312 # get payment_method 313 //start 314 $order_id = get_post( 315 $ticket['order_id'], 316 Tribe__Tickets_Plus__Commerce__WooCommerce__Main::ATTENDEE_ORDER_KEY, 317 true 318 ); 319 $order = wc_get_order($order_id); 320 $order_data = $order->get_data(); 321 $order_payment_method = $order_data['payment_method']; 322 //end
I then echo the $order_payment_method in an if statement to get some text if it’s cash on delivery (cod):
if (strcmp($order_payment_method,'cod')==0) { echo "<p>Bitte bezahlen Sie Ihr Ticket beim Eintreffen!</p>"; } else { echo 'Bereits bezahlt!'; };
Karl EdyParticipantHello,
I tried it like the code below, but it doesn’t work.
If I confirm the ticket via WooCommerce it redirects me to an extra page where I see the ticket, but without any information about anything. (see screenshot) It neither sends the ticket per email.Code:
$order_id = get_post_meta( $ticket['ticket_id'], Tribe__Tickets_Plus__Commerce__WooCommerce__Main::ATTENDEE_ORDER_KEY, true ); $order = wc_get_order( $order_id ); $order_data = $order->get_data(); $order_payment_method = $order_data['payment_method']; echo $order_payment_method;
Thank you for your help!
-
AuthorPosts