function update

This commit is contained in:
magepeopleteam 2021-12-14 09:48:04 +00:00
parent 9f9d4c08fa
commit f6409a90a5
2 changed files with 2 additions and 8 deletions

View File

@ -113,8 +113,6 @@ function mep_add_custom_price($cart_object)
}
/**
* After update the price now need to show user what they selected and the Price details, the below fuunction is for that, Its showing the details into the cart below the event name.
*/
@ -360,10 +358,6 @@ 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'] . ' = ';

View File

@ -457,7 +457,7 @@ if (!function_exists('mep_attendee_create')) {
}
$ticket_total_price = (mep_get_event_ticket_price_by_name($event_id, $ticket_type) * $ticket_qty);
$ticket_total_price = (int) (mep_get_event_ticket_price_by_name($event_id, $ticket_type) * (int) $ticket_qty);
$new_post = array(
'post_title' => $uname,