Home Forums Event Espresso Premium Easy way to allow attendees to email invoice to themselves

Easy way to allow attendees to email invoice to themselves

Posted: November 30, 2012 at 1:27 pm

Noah Purves-Smith

November 30, 2012 at 1:27 pm

I see in invoice_vars.php that there is a link with with a variable: download_invoice=true. I’m wondering if there is a variable I could use to have them email the invoice to themselves, like email_invoice=true.


December 3, 2012 at 4:59 am

Hi Noah,

No not as far as I am aware, however in their email you can add the [invoice_link] tag so they can obtain the invoice directly from their registration email.

Noah Purves-Smith

December 3, 2012 at 10:24 am

Thanks Dean:

Here’s what I ended up doing (I’ll try to include everything):

In gateways/invoice/invoice_vars.php I copied the download link and created an email link:

&lt;a href=&quot;/?page_id=810&amp;email_invoice=true&amp;org=&amp;r_id=" class="inline-link buttonize" id="invoice_email_link"&gt;</a>

I included the registration ID and the organization name in the URL for the next page. In the payment_overview.php in templates I added the following code to email the invoice:

                echo stripslashes_deep($email);
                if(event_espresso_send_invoice( $_REQUEST[&#039;r_id&#039;], &#039;Payment Reminder for [event]&#039;, &#039;Dear [fname] [lname], Our records show that we have not received your payment of [cost] for [event_link]. Please visit [payment_url] to view your payment options.[invoice_link]Sincerely,' . $_REQUEST['org'] . '')){
                    echo 'Did not work.  <a href="' . home_url() . '/?download_invoice=true&amp;attendee_id=' . $attendee_id . '&amp;r_id=' . $registration_id . '">Please Download Invoice</a>.';
                    echo stripslashes_deep($email);
                    $_SESSION['emailed'] = $registration_id;

Works great! 🙂

The support post ‘Easy way to allow attendees to email invoice to themselves’ 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