cart page update

This commit is contained in:
magepeopleteam 2022-04-15 06:58:20 +00:00
parent e4a0488912
commit 65725e3e6b
1 changed files with 6 additions and 6 deletions

View File

@ -144,7 +144,7 @@ function mep_display_custom_fields_text_cart($item_data, $cart_item)
foreach ($ticket_type_arr as $_event_recurring_date) {
if ($hide_date_status == 'no') {
?>
<li><?php esc_html_e(" Date", 'mage-eventpress'); ?>: <?php echo esc_html(get_mep_datetime($_event_recurring_date['event_date'], 'date-time-text')); ?></li>
<li><?php esc_html_e(" Date", 'mage-eventpress'); ?>: <?php echo esc_html(get_mep_datetime($_event_recurring_date['event_date'], apply_filters('mep_cart_date_format','date-time-text'))); ?></li>
<?php
}
}
@ -161,7 +161,7 @@ function mep_display_custom_fields_text_cart($item_data, $cart_item)
foreach ($ticket_type_arr as $_event_recurring_date) {
if ($hide_date_status == 'no') {
?>
<li><?php esc_html_e(" Date", 'mage-eventpress'); ?>: <?php echo esc_html(get_mep_datetime($_event_recurring_date['event_date'], 'date-time-text')); ?></li>
<li><?php esc_html_e(" Date", 'mage-eventpress'); ?>: <?php echo esc_html(get_mep_datetime($_event_recurring_date['event_date'], apply_filters('mep_cart_date_format','date-time-text'))); ?></li>
<?php
}
}
@ -179,7 +179,7 @@ function mep_display_custom_fields_text_cart($item_data, $cart_item)
foreach ($ticket_type_arr as $_event_recurring_date) {
if ($hide_date_status == 'no') {
?>
<li><?php esc_html_e(" Date", 'mage-eventpress'); ?>: <?php echo esc_html(get_mep_datetime($_event_recurring_date['event_date'], 'date-text')); ?></li>
<li><?php esc_html_e(" Date", 'mage-eventpress'); ?>: <?php echo esc_html(get_mep_datetime($_event_recurring_date['event_date'], apply_filters('mep_cart_date_format','date-text'))); ?></li>
<?php
}
}
@ -198,7 +198,7 @@ function mep_display_custom_fields_text_cart($item_data, $cart_item)
} else {
if ($hide_date_status == 'no') {
?>
<li><?php esc_html_e(" Date", 'mage-eventpress'); ?>: <?php echo esc_html(get_mep_datetime($cart_item['event_cart_display_date'], 'date-time-text')); ?></li>
<li><?php esc_html_e(" Date", 'mage-eventpress'); ?>: <?php echo esc_html(get_mep_datetime($cart_item['event_cart_display_date'], apply_filters('mep_cart_date_format','date-time-text'))); ?></li>
<?php
}
}
@ -303,13 +303,13 @@ function mep_add_custom_fields_text_to_order_items($item, $cart_item_key, $value
if ($recurring == 'everyday' && $time_status == 'no') {
if (is_array($ticket_type_arr) && sizeof($ticket_type_arr) > 0) {
foreach ($ticket_type_arr as $_event_recurring_date) {
$item->add_meta_data($date_text, get_mep_datetime($_event_recurring_date['event_date'], 'date-time-text'));
$item->add_meta_data($date_text, get_mep_datetime($_event_recurring_date['event_date'], apply_filters('mep_cart_date_format','date-time-text')));
}
}
} elseif ($recurring == 'yes') {
if (is_array($ticket_type_arr) && sizeof($ticket_type_arr) > 0) {
foreach ($ticket_type_arr as $_event_recurring_date) {
$item->add_meta_data($date_text, get_mep_datetime($_event_recurring_date['event_date'], 'date-time-text'));
$item->add_meta_data($date_text, get_mep_datetime($_event_recurring_date['event_date'], apply_filters('mep_cart_date_format','date-time-text')));
}
}
} else {