file update
This commit is contained in:
parent
eaeb45859c
commit
360ba45f9a
|
@ -144,7 +144,7 @@ function mep_get_all_tax_list($current_tax=null){
|
|||
|
||||
// Send Confirmation email to customer
|
||||
if (!function_exists('mep_event_confirmation_email_sent')) {
|
||||
function mep_event_confirmation_email_sent($event_id,$sent_email){
|
||||
function mep_event_confirmation_email_sent($event_id,$sent_email,$order_id){
|
||||
$values = get_post_custom($event_id);
|
||||
|
||||
$global_email_text = mep_get_option( 'mep_confirmation_email_text', 'email_setting_sec', '');
|
||||
|
@ -183,7 +183,8 @@ function mep_get_all_tax_list($current_tax=null){
|
|||
$headers[] = "From: $form_name <$form_email>";
|
||||
|
||||
if($email_body){
|
||||
$sent = wp_mail( $sent_email, $email_sub, nl2br($email_body), $headers );
|
||||
$confirmation_email_text = apply_filters('mep_event_confirmation_text',$email_body,$event_id,$order_id);
|
||||
wp_mail( $sent_email, $email_sub, nl2br($confirmation_email_text), $headers );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -790,7 +791,7 @@ if (!function_exists('change_wc_event_product_status')) {
|
|||
if($order->has_status( 'processing' ) ) {
|
||||
|
||||
if(in_array('processing',$email_send_status)){
|
||||
mep_event_confirmation_email_sent($event_id,$email);
|
||||
mep_event_confirmation_email_sent($event_id,$email,$order_id);
|
||||
}
|
||||
change_attandee_order_status($order_id,'publish','trash','processing');
|
||||
change_attandee_order_status($order_id,'publish','publish','processing');
|
||||
|
@ -815,7 +816,7 @@ if (!function_exists('change_wc_event_product_status')) {
|
|||
if($order->has_status( 'completed' ) ) {
|
||||
|
||||
if(in_array('completed',$email_send_status)){
|
||||
mep_event_confirmation_email_sent($event_id,$email);
|
||||
mep_event_confirmation_email_sent($event_id,$email,$order_id);
|
||||
}
|
||||
change_attandee_order_status($order_id,'publish','trash','completed');
|
||||
change_attandee_order_status($order_id,'publish','publish','completed');
|
||||
|
|
|
@ -14,7 +14,9 @@ if (!function_exists('mep_event_ticket_type_loop_list_html')) {
|
|||
<?php
|
||||
$count = 1;
|
||||
$seat_plan = get_post_meta($post_id, 'mepsp_event_seat_plan_info', true) ? get_post_meta($post_id, 'mepsp_event_seat_plan_info', true) : [];
|
||||
if (sizeof($seat_plan) > 0) {
|
||||
$seat_plan_visible = get_post_meta($post_id, 'mp_event_seat_plan_visible', true) ? get_post_meta($post_id, 'mp_event_seat_plan_visible', true) : '1';
|
||||
|
||||
if (sizeof($seat_plan) > 0 && $seat_plan_visible ==2) {
|
||||
$event_start_date = get_post_meta($post_id, 'event_start_date', true) . ' ' . get_post_meta($post_id, 'event_start_time', true);
|
||||
$ticket_type_file_path = apply_filters('mep_ticket_type_file_path',mep_template_file_path('single/ticket_type_list.php'),$post_id);
|
||||
require($ticket_type_file_path);
|
||||
|
|
Loading…
Reference in New Issue