WP Travel plugin includes a feature to send the booking confirmation email as well as a payment email to the client and admin during the booking of the trip. But, the plugin does not provide the feature to display the trip price in the booking confirmation email.

display trip price

However, if you are willing to display the trip price in the booking confirmation email then WP Travel plugin provides the feature to add the trip price.

To display the trip price in the booking confirmation email, you have to add the following given filter code in the functions.php file of your child theme.

function wptravel_customized_booking_email_tags( $email_tags, $booking_id ) {
	$order_totals = get_post_meta( $booking_id, 'order_totals', true );
	$email_tags['{trip_price}'] = wptravel_get_formated_price_currency( $order_totals['total'] );
	return $email_tags;
        
}
add_action( 'wp_travel_admin_booking_email_tags', 'wptravel_customized_booking_email_tags', 10, 2 );

For detail information regarding how to create a child theme, please refer to our Knowledgebase.

Also, you have to add “{trip_price}” code in the email template where you are willing to show trip price as shown in the screenshot below:

display trip price

Output:

display trip price

If you have any queries, please submit them to our Contact page.