Support

Home Forums Event Espresso Premium Add additional View Invoice link on Thank you page

Add additional View Invoice link on Thank you page

Posted: October 5, 2022 at 3:41 pm

Viewing 3 reply threads


Justin

October 5, 2022 at 3:41 pm

I am getting feedback that the View Invoice is not being found or isn’t easily found at the bottom. I would like to add an additional link to View Invoice to the top of the Thank You page. Preferably to the top above the yellow outline Congratulations box.
https://www.awesomescreenshot.com/image/33116893?key=5f394dce82c23d3bfc447a402446943e

Currently it lives in the Payment overview section of the page.
https://www.awesomescreenshot.com/image/33116894?key=4fde16a0d6e0ccaf6b3619a306d2e549

I have tried adding shortcode [INVOICE_URL] to the top above [ESPRESSO_THANK_YOU] while editing the Thank You page but it doesn’t populate a link. Ideally I would like to use the same link to put on their WordPress account page (If it matters I am using Ultimate Member).


Tony

  • Support Staff

October 6, 2022 at 3:29 am

Hi there,

There is an action hook you can use to add additional content to the top of the thank you page:

do_action( 'AHEE__thank_you_page_overview_template__top', $transaction );

Or another option is to replace the template file used with a version from your theme (preferably a child theme) with you own custom version with the additional info.

Something like this:

https://gist.github.com/Pebblo/8cac847b47569479e33307699dcfcdd7#file-thank-you-page-overview-template-php

Adds a ‘View Invoice’ next to the View order confirmation button already displayed.

You would save that file as thank-you-page-overview.template.php within the root directory of your theme for EE to use it in place of the default.


Justin

October 6, 2022 at 11:34 am

Perfect! Thank you.


Tony

  • Support Staff

October 6, 2022 at 11:49 am

You’re most welcome 🙂

Viewing 3 reply threads

The support post ‘Add additional View Invoice link on Thank you page’ 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