Created
May 16, 2013 16:10
-
-
Save joshfeck/5592909 to your computer and use it in GitHub Desktop.
Modified payment_page.php template that takes into account someone returning back to edit attendee details from an email link. Event Espresso version 3.1.32.P
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if (!defined('EVENT_ESPRESSO_VERSION')) { exit('No direct script access allowed'); } | |
do_action('action_hook_espresso_log', __FILE__, 'FILE LOADED', ''); | |
//Confirmation Page Template | |
?> | |
<div class="espresso_payment_overview event-display-boxes ui-widget" > | |
<h3 class="section-heading ui-widget-header ui-corner-top"> | |
<?php _e('Payment Overview', 'event_espresso'); ?> | |
</h3> | |
<div class="event-data-display ui-widget-content ui-corner-bottom" > | |
<?php | |
if ( $total_cost == 0 ) { | |
unset($_SESSION['espresso_session']['id']); | |
?> | |
<h2><?php echo $fname ?> <?php echo $lname ?>,</h2> | |
<div class="event-messages ui-state-highlight"> | |
<span class="ui-icon ui-icon-alert"></span> | |
<p class="instruct"> | |
<?php _e('Thank you! Your registration is confirmed for', 'event_espresso'); ?> | |
<b><?php echo stripslashes_deep($event_name) ?></b> | |
</p> | |
</div> | |
<p> | |
<span class="section-title"><?php _e('Your Registration ID: ', 'event_espresso'); ?></span> <?php echo $registration_id ?> | |
</p> | |
<p class="instruct"> | |
<?php _e('A confirmation email has been sent with additional details of your registration.', 'event_espresso'); ?> | |
</p> | |
<?php }elseif ($amount_pd >= $total_cost) { ?> | |
<p>Thank you for updating your attendee data.</p> | |
<?php $total_cost = 0; | |
}else{ ?> | |
<h2><?php echo $fname ?> <?php echo $lname ?>,</h2> | |
<div class="event-messages ui-state-highlight"> | |
<span class="ui-icon ui-icon-alert"></span> | |
<p class="instruct"> | |
<?php _e('Your registration is not complete until payment is received.', 'event_espresso'); ?> | |
</p> | |
</div> | |
<p> | |
<span class="event_espresso_name section-title"><?php _e('Amount due: ', 'event_espresso'); ?></span> | |
<span class="event_espresso_value"><?php echo isset($org_options['currency_symbol']) ? $org_options['currency_symbol'] : ''; ?><?php echo number_format($total_cost,2); ?></span> | |
</p> | |
<p> | |
<span class="section-title"><?php _e('Your Registration ID: ', 'event_espresso'); ?></span><?php echo $registration_id ?> | |
</p> | |
<p> | |
<?php echo $org_options['email_before_payment'] == 'Y' ? __('A confirmation email has been sent with additional details of your registration.', 'event_espresso') : ''; ?> | |
</p> | |
<?php | |
} | |
?> | |
</div><!-- / .event-data-display --> | |
</div><!-- / .event-display-boxes --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment