Support

Home Forums Ticketing Add-on Editing Thank you page text and adding a ticket link .

Editing Thank you page text and adding a ticket link .

Posted: February 19, 2013 at 12:19 pm

Viewing 1 reply thread


Suraj Nuniyar

February 19, 2013 at 12:19 pm

Hello,

I would like to know how can i edit the thank you page text. Currently i am using Authorize.net gateway with SIM settings.

This message is what currently appears “Thank You!
Your transaction has been processed.” and i want to change this.

Also how would i be able to add a link to download ticket to the Thank You Page


Sidney Harrell

February 20, 2013 at 10:54 am

The “thank you” text is actually in gateways/authnet/authnet_ipn.php lines 63 and 64. If you want to preserve the changes from being wiped out in an upgrade of EE, then you’ll want to copy the authnet folder to uploads/espresso/gateways. Be aware, though, that if there are updates to those files, those updates will not be in the copy in uploads. For the ticket link, you can insert the following into templates/payment_overview.php:

<?php if ($payment_status == 'Completed') { ?>
    <tr>
        <td><?php _e('Ticket Link:','event_espresso'); 
            echo espresso_ticket_links($registration_id, $attendee_id); ?>
        </td>
    </tr><?php } ?>

Again, you will want to copy that file to uploads/espresso/templates. However, future updates from EE to that file will not be reflected in that copy, so after updating, you might want to duplicate your customizations on the new copy of those files, and copy them over to uploads again. EDIT: For the “thank you” text, you can actually use this code that Josh wrote up: https://gist.github.com/joshfeck/4962940 to change the text without modifying the gateway file.

Viewing 1 reply thread

The support post ‘Editing Thank you page text and adding a ticket link .’ 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