Support

Home Forums Event Espresso Premium Invoice PDF

Invoice PDF

Posted: September 6, 2014 at 12:34 pm


Stephen Pearson

September 6, 2014 at 12:34 pm

I am trying to correct the invoice PDF and I am having no luck finding the page to do this from. I need to change the discounts being displayed in the transaction box. For example if some gets a ticket and do not qualify for the modifier I dont want to show the modifier on the sales receipt it is confusing and also a little taunting to the customer reminding them they did not get the discount. I enclosed the invoice url on this post. Thanks for the help

http://www.gohtci.com/thank-you/?ee=launch_invoice&id=1-4bcd03f210d0146f936aa6d4f79e96bf&html=1&receipt=true


Dean

September 8, 2014 at 5:16 am

Hi,

The invoice can only be edited via modifying files, /wp-content/plugins/event-espresso-core-reg/modules/gateways/Invoice/lib/templates/receipt_body.template.php

Specifically lines 84-93 would need to be removed or commented out, http://take.ms/phJJI

(Note, that is the receipt the user sees).

It might be better though to look at the tickets and see whether the really need to have global discounts or whether they should be set individually per ticket. That way, if there is no discount applied it won’t show on the receipt.


Stephen Pearson

September 8, 2014 at 8:38 am

Thanks. The student discount goes to every ticket. The other modifier is unique to the ticket. On the PDF I sent it doesnt show the global name but does show the discount of 5%. The other is local and is shown.


Sidney Harrell

September 9, 2014 at 12:59 pm

You could test the return from total_no_code in an if conditional just inside that loop that Dean pointed out. That way if the contribution from the discount is 0, it would skip that line item.

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