func update
This commit is contained in:
parent
104c253da1
commit
8688b18c91
|
@ -111,10 +111,13 @@ function mep_display_custom_fields_text_cart($item_data, $cart_item)
|
|||
|
||||
|
||||
$recurring = get_post_meta($eid, 'mep_enable_recurring', true) ? get_post_meta($eid, 'mep_enable_recurring', true) : 'no';
|
||||
|
||||
$time_status = get_post_meta($eid, 'mep_disable_ticket_time', true) ? get_post_meta($eid, 'mep_disable_ticket_time', true) : 'no';
|
||||
echo "<ul class='event-custom-price'>";
|
||||
|
||||
if ($recurring == 'yes') {
|
||||
|
||||
|
||||
if($recurring == 'everyday' && $time_status == 'no'){
|
||||
|
||||
if (is_array($ticket_type_arr) && sizeof($ticket_type_arr) > 0 && sizeof($user_info) == 0) {
|
||||
|
||||
foreach ($ticket_type_arr as $_event_recurring_date) {
|
||||
|
@ -125,11 +128,50 @@ function mep_display_custom_fields_text_cart($item_data, $cart_item)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (is_array($user_info) && sizeof($user_info) > 0) {
|
||||
echo '<li>';
|
||||
echo mep_cart_display_user_list($user_info,$eid);
|
||||
echo '</li>';
|
||||
}
|
||||
|
||||
}elseif($recurring == 'everyday' && $time_status == 'yes'){
|
||||
if (is_array($ticket_type_arr) && sizeof($ticket_type_arr) > 0 && sizeof($user_info) == 0) {
|
||||
|
||||
foreach ($ticket_type_arr as $_event_recurring_date) {
|
||||
if($hide_date_status == 'no'){
|
||||
?>
|
||||
<li><?php _e("$event_label Date", 'mage-eventpress'); ?>: <?php echo get_mep_datetime($_event_recurring_date['event_date'],'date-time-text'); ?></li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (is_array($user_info) && sizeof($user_info) > 0) {
|
||||
echo '<li>';
|
||||
echo mep_cart_display_user_list($user_info,$eid);
|
||||
echo '</li>';
|
||||
}
|
||||
}elseif ($recurring == 'yes') {
|
||||
|
||||
if (is_array($ticket_type_arr) && sizeof($ticket_type_arr) > 0 && sizeof($user_info) == 0) {
|
||||
|
||||
foreach ($ticket_type_arr as $_event_recurring_date) {
|
||||
if($hide_date_status == 'no'){
|
||||
?>
|
||||
<li><?php _e("$event_label Date", 'mage-eventpress'); ?>: <?php echo get_mep_datetime($_event_recurring_date['event_date'],'date-text'); ?></li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (is_array($user_info) && sizeof($user_info) > 0) {
|
||||
echo '<li>';
|
||||
echo mep_cart_display_user_list($user_info,$eid);
|
||||
echo '</li>';
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
if (is_array($user_info) && sizeof($user_info) > 0) {
|
||||
echo '<li>';
|
||||
|
@ -137,6 +179,10 @@ function mep_display_custom_fields_text_cart($item_data, $cart_item)
|
|||
echo '</li>';
|
||||
} else {
|
||||
if($hide_date_status == 'no'){
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
<li><?php _e("$event_label Date", 'mage-eventpress'); ?>: <?php echo get_mep_datetime($cart_item['event_cart_display_date'],'date-time-text'); ?></li>
|
||||
<?php
|
||||
|
|
Loading…
Reference in New Issue