Support

Home Forums Ticketing Add-on Multiple Pages for Tickets in PDF are not rendered

Multiple Pages for Tickets in PDF are not rendered

Posted: August 5, 2014 at 2:04 am

Viewing 3 reply threads


subkom

August 5, 2014 at 2:04 am

Hi,

when someone orders more than one ticket – we would like to generate not only one ticket but multiple pages according to the ordered quantity.

so when an order contains 4 attendees, we would like 4 (identical) tickets in order that each person has their own ticket with code.

to accomplish this, we just added a php “for-loop” to our own custom-ticket.php:

[…]
$count = $data->attendee->quantity;

for ($i=0; $i < $count; $i++) {
?>
   [.... ticket html code]
<php
}
?>

this works great for the html view, the ticket is display multiple times. but when it comes to the PDF option – only the first ticket is being rendered.

what do we have to do, to get multiple pages in PDF to? i thought that the plain html output will be rendered to pdf but obviously it is not. can you please provide any clues?

Thank you! Best regards
jim


Dean

August 5, 2014 at 4:58 am

Hi Jim,

Firstly I am assuming this is for EE3, please correct me if I am wrong.

You would need to make some changes to the core ticketing add on files which we don’t really recommend, nor support.

If you still want to then you will need to look at the /wp-content/plugins/espresso-ticketing/functions.php file. This contains the functions that grab the HTML templates, insert the data and convert to PDF.


subkom

August 5, 2014 at 5:03 am

Hi Dean,

thanks for your response. You’re right – we are working with EE3 since EE4 sadly does not have a ticketing add-on yet. Maybe you could provide us with a ETA on that?

I will have a look on your mentioned file. Thank you


Lorenzo Orlando Caum

  • Support Staff

August 5, 2014 at 1:04 pm

Hello, there is a roadmap for Event Espresso 4 on this page:

https://eventespresso.com/ee4-frequently-asked-questions/


Lorenzo

Viewing 3 reply threads

The support post ‘Multiple Pages for Tickets in PDF are not rendered’ 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