Forum Replies Created
-
AuthorPosts
-
April 15, 2018 at 11:58 am in reply to: Output the original number of tickets in the frontend event list #1507712salilouParticipant
Thank you, Andras!
But is there a function to get the total amount of tickets?
I do not mean the still available, but the original total number.
Greetings,
HannesApril 15, 2018 at 11:06 am in reply to: Event Tickets Extension: PDF Tickets does not attach pdf files in emails #1507705salilouParticipantThen it works, but only with payment method Cash on pickup.
(Sorry, many thoughts…)April 15, 2018 at 11:02 am in reply to: Event Tickets Extension: PDF Tickets does not attach pdf files in emails #1507700salilouParticipantP.S.: the only way to get it running is by using the “Cash on pickup” plugin!
April 15, 2018 at 9:19 am in reply to: Deactivate payment method COD for special ticket category #1507628salilouParticipantThis is my current code:
add_filter( ‘woocommerce_available_payment_gateways’, ‘bbloomer_unset_gateway_by_category’ );
function bbloomer_unset_gateway_by_category( $available_gateways ) {
global $woocommerce;
$unset = false;
$category_ids = array( 54 );
foreach ( $woocommerce->cart->cart_contents as $key => $values ) {
$terms = get_the_terms( $values[‘product_id’], ‘product_cat’ );
foreach ( $terms as $term ) {
if ( in_array( $term->term_id, $category_ids ) ) {
$unset = true;
break;
}
}
}
if ( $unset == true ) unset( $available_gateways[‘cheque’] );
return $available_gateways;
}salilouParticipantMeanwhile I have made to output the payment method on the ticket email.
My solution:
// get order and payment method
$ticket_order = wc_get_order( $ticket[‘order_id’] );
$ticket_payment_method = $ticket_order->payment_method_title;
Because order_id is there, it is easy.Now my only challenge is to output the payment method on the attendee list email (attendees-email.php).
It would be cool if you could give me the information where it is called and the $items array is built.Thank you and have a nice weekend!
HannessalilouParticipantThank you Sky.
Outputting the payment method seems to be difficult without order id.
Is there a way to output it not inly on the attendee list but also on the ticket email (email.php)?
Greetings,
HannessalilouParticipantI have found how to break an event from series:
https://theeventscalendar.com/knowledgebase/pro-recurring-events/#breaking-off-eventssalilouParticipantThis reply is private.
salilouParticipantHi Jaime,
how can I break an event from a series?
Greetings,
HannessalilouParticipantThanks ou, but this extension is for the WooCommerce email, not for the attendees list email
salilouParticipantHelp Sky,
thank you for your hint, it did the trick!
Is it possible to add two new fields to the list:
• Phone number of attendee
• Payment method of attendee
I hope it is that easy too.
Thank you!April 3, 2018 at 4:53 am in reply to: Automatically reminder email to organizer with attendee list #1495117salilouParticipantToo bad that there is no appointment. The feature is essential for many users of the plugin. I hope it will come soon!
Thanks anyway and greetings,
HannessalilouParticipantThank you Jaime, that did the trick.
Your support is unbelievable!salilouParticipantThats it!
Thank you very much!salilouParticipantYou are welcome 🙂 and thank you for the answer.
Main.php is a large file, which I would not like to copy to my child theme… is there an easier way to change the string?
I had tried it by using a string replacing function in my code snippet plugin, but line break tags are not interpreted there. Or do they, by adding back slashes maybe?
Another way could be to change the WC email template files, but that may be obsolete at the next update. -
AuthorPosts