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

Check the WP Travel documentation to learn more about configurations, modules, payments, and shortcodes.

Your feedback helps us improve. Feel free to share your thoughts!

Need assistance? Contact our support team, join our Facebook community, and subscribe to our YouTube Channel for video tutorials.

You can also find us on Facebook, Instagram, LinkedIn, TikTok, and X. Thank you for choosing WP Travel.

If you are a WP Travel Free user thinking about upgrading to Pro, simply click on the banner below.

Get WP Travel Pro