Support

Home Forums Event Espresso Premium Adding extra info to the Payment Overview section

Adding extra info to the Payment Overview section

Posted: November 19, 2012 at 8:12 am

Viewing 7 reply threads


Andrew Mason

November 19, 2012 at 8:12 am

Hi,

Could you please tell me the code and where to insert the code so that the the name of the event, date and venue are also included in the Payment Overview box (which by default includes attendee name, amount, and registration ID)

Very many thanks.

Andrew


Dean

November 20, 2012 at 1:00 am

Adding the following into your payment_page.php file (copy that and the payment_overview.php file to your uploads/espresso directory and make the changes there) will give you a base to work from.

<p><span class="section-title">Event:</span>
<?php echo $event->event_name; ?>
</p>
    <p><span class="section-title">Starts:</span>
<?php echo $event->start_date; ?>
</p>
    <p>
<?php echo do_shortcode('[ESPRESSO_VENUE]'); ?>
</p>


Andrew Mason

November 20, 2012 at 5:03 am

Thanks, I’ve got that working nicely.

Any ideas how to get the date to format like it does everywhere else?


Dean

November 20, 2012 at 5:43 am

Try this instead

<p><span class="section-title">Event:</span>
<?php echo $event->event_name; ?>
</p>
    <p><span class="section-title">Starts:</span>
<?php echo event_date_display($start_date, get_option('date_format')); ?>
</p>
    <p>
<?php echo do_shortcode('[ESPRESSO_VENUE]'); ?>
</p>


Andrew Mason

November 20, 2012 at 6:16 am

Brilliant, thanks. Sorry can I ask just a couple more things: How to add just the venue address, i.e. without the map. And also, can I add the number of tickets being booked?

  • This reply was modified 12 years, 1 month ago by Andrew Mason.


Andrew Mason

November 20, 2012 at 10:15 am

Sorted the venue details now.

Just need to know if it’s possible to display number of tickets being booked on the payment overview page.


Dean

November 21, 2012 at 6:17 am

Hi Andrew.

This last one is a bit of a pain. The info weirdly isnt available on that screen so you would need to do a database call.

<p><span class="section-title">Ticket Qty: </span>
<?php
global $wpdb, $org_options;
$sql = "SELECT quantity ";
$sql .= " FROM " . EVENTS_ATTENDEE_TABLE;
$sql .= " WHERE registration_id = '" . $registration_id . "' ";
$data_qty = $wpdb->get_row( $wpdb->prepare( $sql ));
echo $data_qty->quantity;
?>
</p>

This wont work with MER (Multiple Event Registration) but that has its own ticket count built in.


Andrew Mason

November 23, 2012 at 3:44 am

thannks!

Viewing 7 reply threads

The support post ‘Adding extra info to the Payment Overview section’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso