HEX
Server: Apache/2
System: Linux server-80-13-140-150.da.direct 5.14.0-362.24.1.el9_3.0.1.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 4 22:31:43 UTC 2024 x86_64
User: cpt (1004)
PHP: 8.1.24
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/cpt/public_html/wp-content/plugins/events-manager/templates/emails/bookingsummary.php
<?php
/*
* This displays the content of the #_BOOKINGSUMMARY placeholder
* You can override the default display settings pages by copying this file to yourthemefolder/plugins/events-manage/placeholders/ and modifying it however you need.
* For more information, see http://wp-events-plugin.com/documentation/using-template-files/
*/
/* @var $EM_Booking EM_Booking */ ?>
<?php foreach($EM_Booking->get_tickets_bookings() as $EM_Ticket_Booking): /* @var $EM_Ticket_Booking EM_Ticket_Booking */ ?>

<?php echo $EM_Ticket_Booking->get_ticket()->ticket_name; ?>

--------------------------------------
<?php _e('Quantity','events-manager'); ?>: <?php echo $EM_Ticket_Booking->get_spaces(); ?>

<?php _e('Price','events-manager'); ?>: <?php echo $EM_Ticket_Booking->get_price(true); ?>

<?php endforeach; ?>

=======================================

<?php 
$price_summary = $EM_Booking->get_price_summary_array();
//we should now have an array of information including base price, taxes and post/pre tax discounts
?>
<?php _e('Sub Total','events-manager'); ?> : <?php echo $EM_Booking->get_price_base(true); ?>

<?php if( count($price_summary['discounts_pre_tax']) > 0 ): ?>

<?php _e('Discounts Before Taxes','events-manager'); ?>

<?php foreach( $price_summary['discounts_pre_tax'] as $discount_summary ): ?>
(<?php echo $discount_summary['name']; ?>) : -<?php echo $discount_summary['amount']; ?>

<?php endforeach; ?>
<?php endif; ?>
<?php if( count($price_summary['surcharges_pre_tax']) > 0 ): ?>

<?php _e('Surcharges Before Taxes','events-manager'); ?>

<?php foreach( $price_summary['surcharges_pre_tax'] as $surcharge_summary ): ?>
(<?php echo $surcharge_summary['name']; ?>) : <?php echo $surcharge_summary['amount']; ?>

<?php endforeach; ?>
<?php endif; ?>

<?php if( !empty($price_summary['taxes']['amount'])  ): ?>
<?php _e('Taxes','events-manager'); ?> ( <?php echo $price_summary['taxes']['rate']; ?> ) : <?php echo $price_summary['taxes']['amount']; ?>
<?php endif; ?>

<?php if( count($price_summary['discounts_post_tax']) > 0 ): ?>

<?php _e('Discounts (After Taxes)','events-manager'); ?>

<?php foreach( $price_summary['discounts_post_tax'] as $discount_summary ): ?>
<?php echo $discount_summary['name']; ?> : -<?php echo $discount_summary['amount']; ?>
 
<?php endforeach; ?>
<?php endif; ?>
<?php if( count($price_summary['surcharges_post_tax']) > 0 ): ?>

<?php _e('Surcharges (After Taxes)','events-manager'); ?>

<?php foreach( $price_summary['surcharges_post_tax'] as $surcharge_summary ): ?>
<?php echo $surcharge_summary['name']; ?> : <?php echo $surcharge_summary['amount']; ?>
 
<?php endforeach; ?>
<?php endif; ?>

<?php _e('Total Price','events-manager'); ?> : <?php echo $price_summary['total']; ?>