Forum Replies Created
-
AuthorPosts
-
infamia
ParticipantI will test again. But it will take me a while so we can mark this closed and I’ll start a new thread if I find a problem with events/woocommerce-tickets
Thanks Barry
mickeyinfamia
ParticipantWoocommerce: woocommerce/assets/admin.css
infamia
ParticipantHey Barry.
It seems to work. I changed the code to
//*reprioritize ticket generation
remove_action( 'woocommerce_order_status_completed', array(TribeWooTickets::get_instance(), 'generate_tickets'), 12 );
add_action( 'woocommerce_order_status_completed', array(TribeWooTickets::get_instance(),'generate_tickets'), 0 );
Thanks again for your continued help.
infamia
ParticipantWoudl this code work:
remove_action( 'woocommerce_order_status_completed', array(TribeWooTickets::get_instance(), 'generate_tickets'));
add_action( 'woocommerce_order_status_completed', array(TribeWooTickets::get_instance(),'generate_tickets'), 0 );
in functions.phpinfamia
ParticipantHey overlanderzsg
On my site, the tickets email still goes out. Were you able to disable the email from being sent? If so can you share what code worked for you please?
thanks
mickeyinfamia
ParticipantNo problem. Since we’re not sending a ticket email, here’s some code to get the event title and date from within woocommerce customer-completed-order.php email:
Hope that helps someone.
mickeyinfamia
ParticipantThanks, Barry. LMK if I can help.
mickey
infamia
ParticipantHey Barry
Doesn’t work. Here are my findings:
This works to remove the “you’ll receive your tickets in another email” message:
`remove_action(‘woocommerce_email_after_order_table’, array(TribeWooTickets::get_instance(), ‘add_tickets_msg_to_email’), 10, 2 );`This doesn’t seem to do anything: `remove_all_actions(‘wootickets-send-tickets-email’);`
This: http://pastebin.com/WgnUYJwV does the following: It removes all email options from woocommerce->Settings->email. This includes New Order, Processing ORder, etc.
However it still sends the Tickets email.mickey
infamia
ParticipantBarry, I’ll follow up there.
infamia
ParticipantHad the same issue. Even tried switching to twentysomething theme.
I reverted to the previous version of wootickets and things worked again.infamia
ParticipantHi Barry
I added the code to functions.php and it doesn’t seem to have an effect on sending ticket emails. Any thoughts?
mickey
infamia
ParticipantThanks, @Barry, I’ll give it a shot. Any easy way of including event time on the order email?
infamia
Participant@byronclinic i think I can do this by hacking the core plugin files, but I’m hoping someone from tri.be can help clarify. There are a few obvious places in the code:
`add_action( ‘wootickets-send-tickets-email’, array( $this, ‘trigger’ ) ); `
`$this->enabled = apply_filters( ‘wootickets-tickets-email-enabled’, ‘yes’ );`See: http://docs.tri.be/Tickets:-WooCommerce/class-TribeWooTicketsEmail.html#$enabled
But I’m not sure we can set apply_filters( ‘wootickets-tickets-email-enabled’, ‘no’) in functions.php so it’s not overwritten by the line above.
mickey
infamia
ParticipantSome clarification:
I’d want to disable the ticket emails, and add the address and date/time on the order email. Any ideas?
mickeyinfamia
ParticipantThis reply is private.
-
AuthorPosts
