error fixed
This commit is contained in:
parent
79337d94fd
commit
ab3bfb799f
|
@ -488,6 +488,27 @@ if (!class_exists('MAGE_Events_Setting_Controls')) :
|
|||
'type' => 'text',
|
||||
'default' => ''
|
||||
),
|
||||
array(
|
||||
'name' => 'mep_name_text',
|
||||
'label' => __('Name:', 'mage-eventpress'),
|
||||
'desc' => __('Enter the text which you want to display as Name in event details page.', 'mage-eventpress'),
|
||||
'type' => 'text',
|
||||
'default' => 'Name:'
|
||||
),
|
||||
array(
|
||||
'name' => 'mep_price_text',
|
||||
'label' => __('Price:', 'mage-eventpress'),
|
||||
'desc' => __('Enter the text which you want to display as Price in event details page.', 'mage-eventpress'),
|
||||
'type' => 'text',
|
||||
'default' => 'Price:'
|
||||
),
|
||||
array(
|
||||
'name' => 'mep_event_schedule_text',
|
||||
'label' => __('Event Schedule Details', 'mage-eventpress'),
|
||||
'desc' => __('Enter the text which you want to display as Event Schedule Details in event details page.', 'mage-eventpress'),
|
||||
'type' => 'text',
|
||||
'default' => 'Event Schedule Details'
|
||||
),
|
||||
array(
|
||||
'name' => 'mep_total_text',
|
||||
'label' => __('Total:', 'mage-eventpress'),
|
||||
|
|
|
@ -144,7 +144,7 @@ $hide_date_status = mep_get_option('mep_hide_date_from_order_page', 'general_se
|
|||
}
|
||||
if (is_array($event_extra_service) && sizeof($event_extra_service) > 0) {
|
||||
foreach ($event_extra_service as $extra_service) {
|
||||
echo '<li>' . $extra_service['service_name'] . " - " . wc_price($extra_service['service_price']) . ' x ' . $extra_service['service_qty'] . ' = ' . wc_price($extra_service['service_price'] * $extra_service['service_qty']) . '</li>';
|
||||
echo '<li>' . $extra_service['service_name'] . " - " . wc_price($extra_service['service_price']) . ' x ' . $extra_service['service_qty'] . ' = ' . wc_price( (int) $extra_service['service_price'] * (int) $extra_service['service_qty']) . '</li>';
|
||||
}
|
||||
}
|
||||
echo "</ul>";
|
||||
|
|
|
@ -21,9 +21,9 @@ function mep_get_event_reg_btn($event_id=''){
|
|||
$mep_reg_company = strip_tags($event_meta['mep_reg_company'][0]);
|
||||
$mep_reg_gender = strip_tags($event_meta['mep_reg_gender'][0]);
|
||||
$mep_reg_tshirtsize = strip_tags($event_meta['mep_reg_tshirtsize'][0]);
|
||||
$simple_rsv = array_key_exists('mep_rsv_seat', $event_meta) ? $event_meta['mep_rsv_seat'][0] : 0;
|
||||
$total_book = ($total_book + $simple_rsv);
|
||||
$seat_left = ((int)$event_meta['mep_total_seat'][0]- (int)$total_book);
|
||||
// $simple_rsv = array_key_exists('mep_rsv_seat', $event_meta) ? $event_meta['mep_rsv_seat'][0] : 0;
|
||||
// $total_book = ($total_book + $simple_rsv);
|
||||
// $seat_left = ((int)$event_meta['mep_total_seat'][0]- (int)$total_book);
|
||||
$time = strtotime($event_expire_date);
|
||||
$newformat = date('Y-m-d H:i:s',$time);
|
||||
$datetime1 = new DateTime();
|
||||
|
@ -162,9 +162,9 @@ function mep_get_event_reg_btn_list(){
|
|||
$mep_reg_company = strip_tags($event_meta['mep_reg_company'][0]);
|
||||
$mep_reg_gender = strip_tags($event_meta['mep_reg_gender'][0]);
|
||||
$mep_reg_tshirtsize = strip_tags($event_meta['mep_reg_tshirtsize'][0]);
|
||||
$simple_rsv = array_key_exists('mep_rsv_seat', $event_meta) ? $event_meta['mep_rsv_seat'][0] : 0;
|
||||
$total_book = ($total_book + $simple_rsv);
|
||||
$seat_left = ((int)$event_meta['mep_total_seat'][0]- (int)$total_book);
|
||||
// $simple_rsv = array_key_exists('mep_rsv_seat', $event_meta) ? $event_meta['mep_rsv_seat'][0] : 0;
|
||||
// $total_book = ($total_book + $simple_rsv);
|
||||
// $seat_left = ((int)$event_meta['mep_total_seat'][0]- (int)$total_book);
|
||||
$time = strtotime($event_expire_date);
|
||||
$newformat = date('Y-m-d H:i:s',$time);
|
||||
$datetime1 = new DateTime();
|
||||
|
|
|
@ -85,7 +85,7 @@ function mep_date_in_default_theme($event_id){
|
|||
$cn = 1;
|
||||
$more_date = array_key_exists('mep_event_more_date', $event_meta) ? unserialize($event_meta['mep_event_more_date'][0]) : array();
|
||||
?>
|
||||
<h3><i class="fa fa-calendar"></i> <?php _e('Event Schedule Details', 'mage-eventpress'); ?></h3>
|
||||
<h3><i class="fa fa-calendar"></i> <?php echo mep_get_option('mep_event_schedule_text', 'label_setting_sec',__('Event Schedule Details','mage-eventpress')); ?></h3>
|
||||
<?php
|
||||
if(sizeof($more_date) > 2){ echo '<ul id="mep_event_date_sch">'; }else{ echo '<ul>'; }
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@ function mep_ev_extra_serv($post_id){
|
|||
?>
|
||||
<table>
|
||||
<tr>
|
||||
<td align="left"><?php _e('Name', 'mage-eventpress'); ?></td>
|
||||
<td class="mage_text_center"><?php _e('Quantity', 'mage-eventpress'); ?></td>
|
||||
<td class="mage_text_center"><?php _e('Price', 'mage-eventpress'); ?></td>
|
||||
<td align="left"><?php echo mep_get_option('mep_name_text', 'label_setting_sec',__('Name:','mage-eventpress')); ?></td>
|
||||
<td class="mage_text_center"><?php echo mep_get_option('mep_quantity_text', 'label_setting_sec',__('Quantity:','mage-eventpress')); ?></td>
|
||||
<td class="mage_text_center"><?php echo mep_get_option('mep_price_text', 'label_setting_sec',__('Price:','mage-eventpress')); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
foreach ($mep_events_extra_prices as $field) {
|
||||
|
|
|
@ -278,8 +278,8 @@ $org_id = $org_arr[0]->term_id;
|
|||
add_action('mep_event_address_list_sidebar','mep_event_address_list_sidebar_html');
|
||||
function mep_event_address_list_sidebar_html($event_id){
|
||||
$location_sts = get_post_meta($event_id,'mep_org_address',true);
|
||||
$org_arr = get_the_terms( $event_id, 'mep_org' );
|
||||
$org_id = $org_arr[0]->term_id;
|
||||
$org_arr = get_the_terms( $event_id, 'mep_org' ) ? get_the_terms( $event_id, 'mep_org' ) : '';
|
||||
$org_id = !empty($org_arr) ? $org_arr[0]->term_id : '';
|
||||
|
||||
$venue = !empty($location_sts) ? get_term_meta( $org_id, 'org_location', true ) : get_post_meta($event_id,'mep_location_venue',true);
|
||||
$street = !empty($location_sts) ? get_term_meta( $org_id, 'org_street', true ) : get_post_meta($event_id,'mep_street',true);
|
||||
|
|
Loading…
Reference in New Issue