function update
This commit is contained in:
parent
72c76b5309
commit
6a8ae37af5
|
@ -12,7 +12,7 @@ if (!function_exists('mep_ev_extra_serv')) {
|
||||||
$count = 1;
|
$count = 1;
|
||||||
$mep_events_extra_prices = get_post_meta($post_id, 'mep_events_extra_prices', true) ? get_post_meta($post_id, 'mep_events_extra_prices', true) : array();
|
$mep_events_extra_prices = get_post_meta($post_id, 'mep_events_extra_prices', true) ? get_post_meta($post_id, 'mep_events_extra_prices', true) : array();
|
||||||
$event_date = get_post_meta($post_id, 'event_start_date', true) . ' ' . get_post_meta($post_id, 'event_start_time', true);
|
$event_date = get_post_meta($post_id, 'event_start_date', true) . ' ' . get_post_meta($post_id, 'event_start_time', true);
|
||||||
|
$mep_available_seat = get_post_meta($post_id, 'mep_available_seat', true) ? get_post_meta($post_id, 'mep_available_seat', true) : 'on';
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
if (sizeof($mep_events_extra_prices) > 0) {
|
if (sizeof($mep_events_extra_prices) > 0) {
|
||||||
|
|
|
@ -15,6 +15,7 @@ if (!function_exists('mep_output_add_to_cart_custom_fields')) {
|
||||||
$total_sold = mep_ticket_sold($post_id);
|
$total_sold = mep_ticket_sold($post_id);
|
||||||
$total_left = $total_seat - ($total_sold + $total_resv);
|
$total_left = $total_seat - ($total_sold + $total_resv);
|
||||||
$total_left = apply_filters('mep_event_total_seat_count', $total_left, $post_id);
|
$total_left = apply_filters('mep_event_total_seat_count', $total_left, $post_id);
|
||||||
|
|
||||||
if ($total_left > 0) {
|
if ($total_left > 0) {
|
||||||
|
|
||||||
do_action('mep_event_ticket_types', $post_id,$ticket_type_label,$select_date_label);
|
do_action('mep_event_ticket_types', $post_id,$ticket_type_label,$select_date_label);
|
||||||
|
|
|
@ -29,9 +29,12 @@
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="Left"><?php echo esc_html($service_name); ?>
|
<td align="Left"><?php echo esc_html($service_name); ?>
|
||||||
|
<?php if ($mep_available_seat == 'on') { ?>
|
||||||
<div class="xtra-item-left"><?php echo esc_html($ext_left); ?>
|
<div class="xtra-item-left"><?php echo esc_html($ext_left); ?>
|
||||||
<?php echo mep_get_option('mep_left_text', 'label_setting_sec') ? mep_get_option('mep_left_text', 'label_setting_sec') : esc_html__('Left:', 'mage-eventpress'); ?>
|
<?php echo mep_get_option('mep_left_text', 'label_setting_sec') ? mep_get_option('mep_left_text', 'label_setting_sec') : esc_html__('Left:', 'mage-eventpress'); ?>
|
||||||
</div>
|
</div>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
<input type="hidden" name='mep_event_start_date_es[]' value='<?php echo esc_attr($event_date); ?>'>
|
<input type="hidden" name='mep_event_start_date_es[]' value='<?php echo esc_attr($event_date); ?>'>
|
||||||
</td>
|
</td>
|
||||||
<td class="mage_text_center">
|
<td class="mage_text_center">
|
||||||
|
|
Loading…
Reference in New Issue