function update
This commit is contained in:
parent
72c76b5309
commit
6a8ae37af5
|
@ -12,7 +12,7 @@ if (!function_exists('mep_ev_extra_serv')) {
|
|||
$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();
|
||||
$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();
|
||||
|
||||
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_left = $total_seat - ($total_sold + $total_resv);
|
||||
$total_left = apply_filters('mep_event_total_seat_count', $total_left, $post_id);
|
||||
|
||||
if ($total_left > 0) {
|
||||
|
||||
do_action('mep_event_ticket_types', $post_id,$ticket_type_label,$select_date_label);
|
||||
|
|
|
@ -29,9 +29,12 @@
|
|||
?>
|
||||
<tr>
|
||||
<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); ?>
|
||||
<?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>
|
||||
<?php } ?>
|
||||
|
||||
<input type="hidden" name='mep_event_start_date_es[]' value='<?php echo esc_attr($event_date); ?>'>
|
||||
</td>
|
||||
<td class="mage_text_center">
|
||||
|
|
Loading…
Reference in New Issue