Posted: August 8, 2013 at 2:58 am
|
I should make a small change to the invoice template. |
|
Can anyone answer me please! |
|
Please, can someone help me! |
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; ?>&download_invoice=true&attendee_id=<?php echo $attendee_id; ?>&r_id=<?php echo $registration_id ?>" class="inline-link allow-leave-page" id="invoice_download_link"><?php _e('Download PDF Invoice', 'event_espresso'); ?></a> |
|
|
Hi Josh, 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? |
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: |
|
|
Ok! Thanks anyway |
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.