Support

Home Forums Event Espresso Premium Editing Invoice

Editing Invoice

Posted: August 8, 2013 at 2:58 am

Viewing 6 reply threads


Marco Genovese

August 8, 2013 at 2:58 am

I should make a small change to the invoice template.
I would like in the “Bill to:” instead of the name, surname and email primary attendee, there is the data of the user who is logged.
Here’s an example to clarify:
I have created an event called “agencies registration” through which I collect agencies data and also, using a script, I register these agencies as wordpress users.
So the agencies access the website and purchase events on behalf of other people.
Considering the fact that I already have the data of the agencies, it’s possible enter in the “Bill to:” of invoice the name of the agency that buys the event rather than the data of the primary attendee?


Marco Genovese

August 8, 2013 at 5:13 am

Can anyone answer me please!


Marco Genovese

August 8, 2013 at 8:59 am

Please, can someone help me!


Josh

  • Support Staff

August 8, 2013 at 9:16 am

Absolutely. You can add your own queries to pull your custom data and print them on the invoice by modifying the template.php file in /gateways/invoice.

Once you’re done, you can copy it to /wp-content/uploads/espresso/gateways to keep the invoice modifications from being overwritten on an update.

It turns out that we are about to release a hotfix for the invoice payment option, so you’ll want to be sure to apply this fix to line 56 of gateways/invoice/invoice_vars.php:

<a href="<?php echo home_url(); ?>/?invoice_type=<?php echo empty($invoice_type) ? '' : $invoice_type; ?>&amp;download_invoice=true&amp;attendee_id=<?php echo $attendee_id; ?>&amp;r_id=<?php echo $registration_id ?>" class="inline-link allow-leave-page" id="invoice_download_link"><?php _e('Download PDF Invoice', 'event_espresso'); ?></a>


Marco Genovese

August 8, 2013 at 11:03 am

Hi Josh,
thanks for the reply end for code to invoice_vars.php

I have tried to edit the template.php file for insert into invoice under “Bill to:” the wordpress user who has purchased the event, (not the primary attendee) but I did not succeed.

Is there any snippet code ready that I can use?
Thanks in advance


Josh

  • Support Staff

August 8, 2013 at 11:26 am

We do not have a code snippet for this. The code that’s already in the file that pulls the attendee info can be modified to use your custom data (where ever that may be stored).

If you would prefer someone else to develop this solution for you, we can highly recommend one of our pros:

https://eventespresso.com/developers/event-espresso-pros/


Marco Genovese

August 8, 2013 at 11:28 am

Ok! Thanks anyway

Viewing 6 reply threads

The support post ‘Editing Invoice’ 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