version 3.3.6 released

This commit is contained in:
magepeopleteam 2020-10-28 05:43:56 +00:00
parent 45cf52b65a
commit c710c57529
1 changed files with 46 additions and 24 deletions

View File

@ -554,22 +554,31 @@ function ttttt(){
}
if(is_array($user_info_arr) & sizeof($user_info_arr) > 0){
foreach ($user_info_arr as $_user_info) {
if($check_before_create == 0){
mep_attendee_create('user_form',$order_id,$event_id,$_user_info);
}else{
mep_delete_attandee_of_an_order($order_id,$event_id);
mep_attendee_create('user_form',$order_id,$event_id,$_user_info);
}
mep_attendee_create('user_form',$order_id,$event_id,$_user_info);
// if($check_before_create == 0){
// mep_attendee_create('user_form',$order_id,$event_id,$_user_info);
// }else{
// mep_delete_attandee_of_an_order($order_id,$event_id);
// mep_attendee_create('user_form',$order_id,$event_id,$_user_info);
// }
}
}else{
foreach($event_ticket_info_arr as $tinfo){
for ($x = 1; $x <= $tinfo['ticket_qty']; $x++) {
if($check_before_create == 0){
mep_attendee_create('billing',$order_id,$event_id,$tinfo);
}else{
mep_delete_attandee_of_an_order($order_id,$event_id);
mep_attendee_create('billing',$order_id,$event_id,$tinfo);
}
mep_attendee_create('billing',$order_id,$event_id,$tinfo);
// if($check_before_create == 0){
// mep_attendee_create('billing',$order_id,$event_id,$tinfo);
// }else{
// mep_delete_attandee_of_an_order($order_id,$event_id);
// mep_attendee_create('billing',$order_id,$event_id,$tinfo);
// }
}
}
}
@ -595,22 +604,30 @@ function ttttt(){
}
if(is_array($user_info_arr) & sizeof($user_info_arr) > 0){
foreach ($user_info_arr as $_user_info) {
if($check_before_create == 0){
mep_attendee_create('user_form',$order_id,$event_id,$_user_info);
}else{
mep_delete_attandee_of_an_order($order_id,$event_id);
mep_attendee_create('user_form',$order_id,$event_id,$_user_info);
}
// if($check_before_create == 0){
// mep_attendee_create('user_form',$order_id,$event_id,$_user_info);
// }else{
// mep_delete_attandee_of_an_order($order_id,$event_id);
// mep_attendee_create('user_form',$order_id,$event_id,$_user_info);
// }
}
}else{
foreach($event_ticket_info_arr as $tinfo){
for ($x = 1; $x <= $tinfo['ticket_qty']; $x++) {
if($check_before_create == 0){
mep_attendee_create('billing',$order_id,$event_id,$tinfo);
}else{
mep_delete_attandee_of_an_order($order_id,$event_id);
mep_attendee_create('billing',$order_id,$event_id,$tinfo);
}
mep_attendee_create('billing',$order_id,$event_id,$tinfo);
// if($check_before_create == 0){
// mep_attendee_create('billing',$order_id,$event_id,$tinfo);
// }else{
// mep_delete_attandee_of_an_order($order_id,$event_id);
// mep_attendee_create('billing',$order_id,$event_id,$tinfo);
// }
}
}
}
@ -639,7 +656,12 @@ function mep_delete_attandee_of_an_order($order_id,$event_id){
'key' => 'ea_event_id',
'value' => $event_id,
'compare' => '='
)
),
array(
'key' => 'ea_order_status',
'value' => 'pending',
'compare' => '='
)
)
);
$loop = new WP_Query($args);