error fixed

This commit is contained in:
magepeopleteam 2020-05-13 11:44:48 +00:00
parent 79337d94fd
commit ab3bfb799f
6 changed files with 34 additions and 13 deletions

View File

@ -488,6 +488,27 @@ if (!class_exists('MAGE_Events_Setting_Controls')) :
'type' => 'text', 'type' => 'text',
'default' => '' '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( array(
'name' => 'mep_total_text', 'name' => 'mep_total_text',
'label' => __('Total:', 'mage-eventpress'), 'label' => __('Total:', 'mage-eventpress'),

View File

@ -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) { if (is_array($event_extra_service) && sizeof($event_extra_service) > 0) {
foreach ($event_extra_service as $extra_service) { 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>"; echo "</ul>";

View File

@ -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_company = strip_tags($event_meta['mep_reg_company'][0]);
$mep_reg_gender = strip_tags($event_meta['mep_reg_gender'][0]); $mep_reg_gender = strip_tags($event_meta['mep_reg_gender'][0]);
$mep_reg_tshirtsize = strip_tags($event_meta['mep_reg_tshirtsize'][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; // $simple_rsv = array_key_exists('mep_rsv_seat', $event_meta) ? $event_meta['mep_rsv_seat'][0] : 0;
$total_book = ($total_book + $simple_rsv); // $total_book = ($total_book + $simple_rsv);
$seat_left = ((int)$event_meta['mep_total_seat'][0]- (int)$total_book); // $seat_left = ((int)$event_meta['mep_total_seat'][0]- (int)$total_book);
$time = strtotime($event_expire_date); $time = strtotime($event_expire_date);
$newformat = date('Y-m-d H:i:s',$time); $newformat = date('Y-m-d H:i:s',$time);
$datetime1 = new DateTime(); $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_company = strip_tags($event_meta['mep_reg_company'][0]);
$mep_reg_gender = strip_tags($event_meta['mep_reg_gender'][0]); $mep_reg_gender = strip_tags($event_meta['mep_reg_gender'][0]);
$mep_reg_tshirtsize = strip_tags($event_meta['mep_reg_tshirtsize'][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; // $simple_rsv = array_key_exists('mep_rsv_seat', $event_meta) ? $event_meta['mep_rsv_seat'][0] : 0;
$total_book = ($total_book + $simple_rsv); // $total_book = ($total_book + $simple_rsv);
$seat_left = ((int)$event_meta['mep_total_seat'][0]- (int)$total_book); // $seat_left = ((int)$event_meta['mep_total_seat'][0]- (int)$total_book);
$time = strtotime($event_expire_date); $time = strtotime($event_expire_date);
$newformat = date('Y-m-d H:i:s',$time); $newformat = date('Y-m-d H:i:s',$time);
$datetime1 = new DateTime(); $datetime1 = new DateTime();

View File

@ -85,7 +85,7 @@ function mep_date_in_default_theme($event_id){
$cn = 1; $cn = 1;
$more_date = array_key_exists('mep_event_more_date', $event_meta) ? unserialize($event_meta['mep_event_more_date'][0]) : array(); $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 <?php
if(sizeof($more_date) > 2){ echo '<ul id="mep_event_date_sch">'; }else{ echo '<ul>'; } if(sizeof($more_date) > 2){ echo '<ul id="mep_event_date_sch">'; }else{ echo '<ul>'; }

View File

@ -12,9 +12,9 @@ function mep_ev_extra_serv($post_id){
?> ?>
<table> <table>
<tr> <tr>
<td align="left"><?php _e('Name', '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 _e('Quantity', '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 _e('Price', 'mage-eventpress'); ?></td> <td class="mage_text_center"><?php echo mep_get_option('mep_price_text', 'label_setting_sec',__('Price:','mage-eventpress')); ?></td>
</tr> </tr>
<?php <?php
foreach ($mep_events_extra_prices as $field) { foreach ($mep_events_extra_prices as $field) {

View File

@ -278,8 +278,8 @@ $org_id = $org_arr[0]->term_id;
add_action('mep_event_address_list_sidebar','mep_event_address_list_sidebar_html'); add_action('mep_event_address_list_sidebar','mep_event_address_list_sidebar_html');
function mep_event_address_list_sidebar_html($event_id){ function mep_event_address_list_sidebar_html($event_id){
$location_sts = get_post_meta($event_id,'mep_org_address',true); $location_sts = get_post_meta($event_id,'mep_org_address',true);
$org_arr = get_the_terms( $event_id, 'mep_org' ); $org_arr = get_the_terms( $event_id, 'mep_org' ) ? get_the_terms( $event_id, 'mep_org' ) : '';
$org_id = $org_arr[0]->term_id; $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); $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); $street = !empty($location_sts) ? get_term_meta( $org_id, 'org_street', true ) : get_post_meta($event_id,'mep_street',true);