Support

Home Forums Event Espresso Premium Add Invoice Link to confirmation Mail

Add Invoice Link to confirmation Mail

Posted: May 29, 2017 at 1:11 pm

Viewing 3 reply threads


KTM

May 29, 2017 at 1:11 pm

Hello,

I want to add the link to the invoice to the confirmation mail.
I added the shortcodes [INVOICE_LINK] [INVOICE_URL] to the registration mail template.

In the mail I get a link to http://dummyinvoicelinksforpreview.com

How can I insert the link to the real invoice?

Thanks


Tony

  • Support Staff

May 29, 2017 at 1:35 pm

Hi there,

Are you previewing or sending a test email? If so it’s expected that you get dummy details.

If you add a test registration to your site and view the emails it receives you should have the correct details.


KTM

May 29, 2017 at 4:15 pm

I tried several times with a test registration. no preview or test email…
https://www.kochfabrikkoeln.de/veranstaltungen/kochkurs-test/

It does not work. Any other ideas?


Josh

  • Support Staff

May 29, 2017 at 7:39 pm

Hi there,

The web page that you linked to here doesn’t load for me. Does it load for you?

Can you check your PHP error log for errors when those emails were generated? The method that builds the invoice URL does this:

public function invoice_url( $type = 'html' ) {
	$REG = $this->primary_registration();
	if ( ! $REG instanceof EE_Registration ) {
		return '';
	}
	return $REG->invoice_url( $type );
}

So if something went wrong with the registration data then there’s the potential that the invoice URL will return nothing, which will in turn give you that preview link instead.

Viewing 3 reply threads

The support post ‘Add Invoice Link to confirmation Mail’ 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