php 8 issue fixed

This commit is contained in:
magepeopleteam 2021-05-24 10:22:43 +00:00
parent e9ef623822
commit 7c218c5053
3 changed files with 3 additions and 4 deletions

View File

@ -324,7 +324,7 @@ function mep_add_custom_fields_text_to_order_items($item, $cart_item_key, $value
if (is_array($event_extra_service) && sizeof($event_extra_service) > 0) {
foreach ($event_extra_service as $extra_service) {
$service_type_name = $extra_service['service_name'] . " - " . wc_price(mep_get_price_including_tax($eid,$extra_service['service_price'])) . ' x ' . $extra_service['service_qty'] . ' = ';
$service_type_val = wc_price(mep_get_price_including_tax($eid,$extra_service['service_price'] * $extra_service['service_qty']));
$service_type_val = wc_price(mep_get_price_including_tax($eid,(float) $extra_service['service_price'] * (float) $extra_service['service_qty']));
$item->add_meta_data($service_type_name, $service_type_val);
}
}

View File

@ -1111,7 +1111,7 @@ if (!function_exists('mep_load_events_templates')) {
return $template;
}
}
add_filter('single_template', 'mep_load_events_templates');
add_filter('single_template', 'mep_load_events_templates',90);
@ -3067,7 +3067,7 @@ if (!function_exists('mep_cart_order_data_save_ticket_type')) {
function mep_cart_order_data_save_ticket_type($item,$ticket_type_arr,$eid){
foreach ($ticket_type_arr as $ticket) {
$ticket_type_name = $ticket['ticket_name'] . " - " . wc_price(mep_get_price_including_tax($eid,$ticket['ticket_price'])) . ' x ' . $ticket['ticket_qty'] . ' = ';
$ticket_type_val = wc_price(mep_get_price_including_tax($eid,$ticket['ticket_price'] * $ticket['ticket_qty']));
$ticket_type_val = wc_price(mep_get_price_including_tax($eid,(float) $ticket['ticket_price'] * (float) $ticket['ticket_qty']));
$ticket_name_meta = apply_filters('mep_event_order_meta_ticket_name_filter',$ticket_type_name,$ticket);
$item->add_meta_data($ticket_name_meta, $ticket_type_val);
}

View File

@ -5,7 +5,6 @@ Requires at least: 5.3
Stable tag: trunk
Version: 2.1.3
Tested up to: 5.7
Requires PHP: 7.0
WC requires at least: 3.0
WC tested up to: 5.0
Requires PHP: 7.0