func update
This commit is contained in:
parent
104c253da1
commit
8688b18c91
|
@ -110,11 +110,14 @@ function mep_display_custom_fields_text_cart($item_data, $cart_item)
|
||||||
$event_label = mep_get_option('mep_event_label', 'general_setting_sec', 'Events');
|
$event_label = mep_get_option('mep_event_label', 'general_setting_sec', 'Events');
|
||||||
|
|
||||||
|
|
||||||
$recurring = get_post_meta($eid, 'mep_enable_recurring', true) ? get_post_meta($eid, 'mep_enable_recurring', true) : 'no';
|
$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'>";
|
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) {
|
if (is_array($ticket_type_arr) && sizeof($ticket_type_arr) > 0 && sizeof($user_info) == 0) {
|
||||||
|
|
||||||
foreach ($ticket_type_arr as $_event_recurring_date) {
|
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) {
|
if (is_array($user_info) && sizeof($user_info) > 0) {
|
||||||
echo '<li>';
|
echo '<li>';
|
||||||
echo mep_cart_display_user_list($user_info,$eid);
|
echo mep_cart_display_user_list($user_info,$eid);
|
||||||
echo '</li>';
|
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 {
|
} else {
|
||||||
if (is_array($user_info) && sizeof($user_info) > 0) {
|
if (is_array($user_info) && sizeof($user_info) > 0) {
|
||||||
echo '<li>';
|
echo '<li>';
|
||||||
|
@ -137,6 +179,10 @@ function mep_display_custom_fields_text_cart($item_data, $cart_item)
|
||||||
echo '</li>';
|
echo '</li>';
|
||||||
} else {
|
} else {
|
||||||
if($hide_date_status == 'no'){
|
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>
|
<li><?php _e("$event_label Date", 'mage-eventpress'); ?>: <?php echo get_mep_datetime($cart_item['event_cart_display_date'],'date-time-text'); ?></li>
|
||||||
<?php
|
<?php
|
||||||
|
|
Loading…
Reference in New Issue