diff --git a/inc/mep_extra_price.php b/inc/mep_extra_price.php index 7940061..b41e352 100644 --- a/inc/mep_extra_price.php +++ b/inc/mep_extra_price.php @@ -78,6 +78,7 @@ if(isset($_POST['mep_event_ticket_type'])){ $mep_event_ticket_type = get_post_meta($product_id, 'mep_event_ticket_type', true) ? get_post_meta($product_id, 'mep_event_ticket_type', true) : array(); $cnt = 0; + $vald = 0; $ticket_type_arr = array(); if(is_array($mep_event_ticket_type) && sizeof($mep_event_ticket_type) > 0){ foreach($mep_event_ticket_type as $_type){ @@ -97,6 +98,9 @@ if(isset($_POST['mep_event_ticket_type'])){ $ticket_type_arr[$cnt]['ticket_qty'] = stripslashes( strip_tags( $cart_arr['option_qty'] ) ); $ticket_type_arr[$cnt]['ticket_price'] = stripslashes( strip_tags( $cart_arr['option_price'] ) ); $ticket_type_arr[$cnt]['event_date'] = stripslashes( strip_tags( $mep_event_start_date ) ); + + $validate[$cnt]['ticket_qty'] = $vald + stripslashes( strip_tags( $cart_arr['option_qty'] ) ); + $validate[$cnt]['event_id'] = stripslashes( strip_tags( $product_id ) ); } $cnt++; @@ -122,10 +126,10 @@ foreach($mep_events_extra_prices as $extra_service){ $us++; } - $cart_item_data['event_ticket_info'] = $ticket_type_arr; + $cart_item_data['event_validate_info'] = $validate; $cart_item_data['event_extra_option'] = $new; $cart_item_data['event_user_info'] = $user; $cart_item_data['event_tp'] = $tp; @@ -172,9 +176,10 @@ $eid = $cart_item['event_id']; if (get_post_type($eid) == 'mep_events') { $user_info = $cart_item['event_user_info']; $ticket_type_arr = $cart_item['event_ticket_info']; - // echo '
';
-  // print_r($user_info);
-    
+
+ 
+
+
 echo "