function update
This commit is contained in:
@@ -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'] . ' = ';
|
||||
@@ -382,4 +376,4 @@ function mep_add_custom_fields_text_to_order_items($item, $cart_item_key, $value
|
||||
do_action('mep_event_cart_order_data_add', $values, $item);
|
||||
}
|
||||
}
|
||||
add_action('woocommerce_checkout_create_order_line_item', 'mep_add_custom_fields_text_to_order_items', 90, 4);
|
||||
add_action('woocommerce_checkout_create_order_line_item', 'mep_add_custom_fields_text_to_order_items', 90, 4);
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user