Forum Replies Created
-
AuthorPosts
-
Murray
ParticipantW00t! That one works! Thanks to Nico and George for hanging in there with me. My tickets no longer confuse people. 🙂
Murray
ParticipantHmm – it still isn’t working for me. This is what I have –
if ( class_exists( ‘Tribe__Tickets_Plus__Main’ ) && class_exists( ‘Tribe__Tickets_Plus__QR’ ) ) {
$qr_instance = Tribe__Tickets_Plus__Main::instance()->qr();remove_action( ‘tribe_tickets_ticket_email_ticket_bottom’, array( $qr, ‘inject_qr’) );
}Murray
ParticipantGeorge, that still doesn’t work. The darn QR code is still there. I want to remove it because there is no function to it for the purpose of this event – there’s no need to check in. You come, you hand in your ticket, you sit in a seat, you’re done!
Murray
ParticipantUnfortunately, that doesn’t work either, although it now no longer generates an error message! Any idea why it might be failing? Also, would it be possible to ‘retrofit’ the earlier thread (which is now locked) with the corrections?
Murray
ParticipantYes, that worked fine, although I did it by jumping out of PHP and just specifying the HTML before going back into PHP to close the function. Thanks for the suggestion!
Murray
Murray
ParticipantThanks, Cliff! So, to add an action to one of the action hooks, I would just create an add_action function in my theme’s functions.php file?
This should do the trick, no?
// ADD CONTENT TO EMAILED TICKET FOR NYE2016
add_action(‘tribe_tickets_ticket_email_ticket_bottom’, ‘admit_one’);
function admit_one() {
return “Admit one per ticket. Limited seating available.
“;
}Murray
ParticipantAndrás – thanks for your reply. As a developer of sorts, can you point me to any codex information or perhaps knowledgebase information that I could use for this customization? With a little guidance I believe I am capable of making this modification myself.
Murray
ParticipantGeorge –
Regarding the add_action() function for the QR code, could I also just add a corresponding remove_action() line to my functions file?
I am using a PayPal Express Checkout gateway for the site, along with Guest checkout enabled.
Regarding the order completion, I found this snippet –
https://docs.woocommerce.com/document/automatically-complete-orders/
and added it to my functions file. It works!So, things now seem to be working OK, so I really appreciate your comprehensive help with my issues. Let me also say that your idea of adding a promotional 100% off coupon is simply brilliant. I was wondering how to test things once I take them live!
Thanks again.
Murray
ParticipantHeh – oops…
Murray
ParticipantGeorge – your persistence with these replies is definitely exception and very much appreciated. You have gotten me well down the road, and I only have a few more questions/comments before going live.
1. The handling charge is taken care by just adding it to the ticket price; simple and effective.
2. The 5 tickets being sold are all marked as virtual tickets. According to my reading of WooCommerce docs, they should be automatically Completed with the order has been validated, but they are not. Now – I am still in sandbox mode – would that make a difference? It has been suggested that I install an Add On from Woo called “WooCommerce order status control”, but it’s a $29 charge for something that the base system should already be doing. I’d like to find another way if it exists.
3. Thanks for the correct link to the customizing doc. I’ll study it!
4. With regard to the email customization, I have been looking at the “email.php” file contained in plugins/event-tickets/src/views/tickets/email.php, and am wondering if I just comment out the line at the bottom of this file –
do_action( ‘tribe_tickets_ticket_email_bottom’ );
wouldn’t that eliminate the QR element from the emailed page? If so, can I then copy that edited file into a similar location under my theme to override the parent file?Finally, I have made this a private reply, but I think there is information in the exchange that may be useful to the community. What would you suggest – a public summary?
Murray
ParticipantOK – now you’re in trouble!
EMAILED TICKET PAGE
1. Can I replace the URL shown just above the QR code with custom content that would appear on ALL tickets?
2. Can I suppress the QR code altogether?
3. Why does the Customizing Event Tickets link shown under “Help” in the Events > Settings > Help tab take me to a 404 page? It’s just what I need! 🙂Murray
ParticipantUpdate – Ignore my item 3! As often happens, it was operator error. With item 1, we have decided to include the handling in the ticket charge. I’d love to have a solution for the second one, however.
Murray
ParticipantGeorge – you are the one who has been patient! The link to the KB was the key to my enlightnment. I’m well down the road now, but there are still a few questions:
1. I want to add a handling charge to each ticket sold. It appears that the tickets are marked as virtual products in WooCommerce which does not trigger handling charges. What can I do about that?
2. In Events Tickets, I have checked the checkbox to set the order to complete in WooCommerce, yet it’s shown as Processing. Tickets are not emailed until that Order is marked as Complete. Is there anything I can do about that?
3. Finally, after placing one test order, if I go back to the post I do not see products or options. All I see is the words “Comments are closed.” What have I done wrong here?
Thanks so much for your persistence. I feel like I am very close now!
Murray
ParticipantGeorge – we are closing in on this! What I’m not clear on is the ticket part. How do I add a ticket to a post/page? And if I already have a ticket designed, how do I use that design? And how is it that when they buy a ticket, the plugin knows to send the purchased ticket(s) by email?
I’m not opposed to go either way (calendar or not), but I want to select the method that makes the most sense. In my early testing, when I go the event way, I am taken to a page that has a calendar on it and events listed, but clicking on one of those events does not give me any purchase options. On the other hand, if I just do the WooCommerce thing, I can complete a purchase, but no ticket email is triggered. How do I get tab A into slot B, so to speak?
Murray
ParticipantGeorge – thanks so much for your help! Let me ask a few more questions, please. The site in question wants to sell a few tickets to a Halloween party and ghost-house tour. When a ticket is sold, they want to send an email to the buyer containing an individualized ticket for each such ticket purchased. I already have WooCommerce and PayPal for WooCommerce set up with the tickets as products (I believe there will be 5 different tickets in all) and orders can be taken and confirmed (it’s still in sandbox mode). You can see the products page here – http://www.mccoolesredlioninn.com/shop. It’s not linked in from the site yet. So my questions are:
1. Can I do what I want to do without getting into the event calendaring?
2. If so, then how do I integrate Events Tickets Plus (to trigger the individualized ticket emailing) with the ordering process?
3. Would I be better off defining the Halloween party and other things each as a separate event and using the Calendar pages?
4. How do I add the ordering facility to the calendar pages if this is the best way to go?As you can see, I am still very much ‘at sea’ as to how to bring all of these capabilities together. If you could please help or direct me to some specific written material that will give me more information, I would really appreciate it.
-
AuthorPosts
