Support

Home Forums Event Espresso Premium Invoice PDF is showing all questions in reverse order

Invoice PDF is showing all questions in reverse order

Posted: June 11, 2014 at 12:54 pm

Viewing 2 reply threads


martha dolan

June 11, 2014 at 12:54 pm

Invoice PDF is showing all questions in reverse order. The questions are in the correct order on the form, but the PDF is all backwards. I have not customized anything. USing E4.

http://foothillschurch.org/events/summer-camp-sign-up/

This is the PDF https://www.dropbox.com/s/mpboz7xwlprgzvu/Foothills_Christian_Church_Invoice_%2320-18-1-7634c9-0_for_mar_mar.pdf


Josh

  • Support Staff

June 11, 2014 at 5:51 pm

Hi Martha,

This can be customized if you prefer them. In receipt_template.body.php on line 135 of the current version of ee4 you’ll find this line of code:

$answers = $registration->answers(array('order_by'=>array('Question.Question_Group_Question.QGQ_order'=>'desc')));?>

which can be changed to:

$answers = $registration->answers(array('order_by'=>array('Question.Question_Group_Question.QGQ_order'=>'asc')));?>

The receipt_template.body.php template file is located in the /wp-content/plugins/event-espresso/modules/gateways/Invoice/lib/templates/ folder.


Josh

  • Support Staff

July 22, 2014 at 8:48 am

Hi Martha,

I wanted to give you an update on this. The order of the questions was reversed in Event Espresso 4.2.9 so they’ll display on the invoice in the same order you set them to display on the front-end.

Viewing 2 reply threads

The support post ‘Invoice PDF is showing all questions in reverse order’ 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