Support

Home Forums Ticketing Add-on Printable Ticket – does not print on single page

Printable Ticket – does not print on single page

Posted: March 30, 2016 at 5:06 am

Viewing 5 reply threads


Wonderful2016

March 30, 2016 at 5:06 am

I used the doc on common problem with printing and used this solution:

SOLUTION: Go into the Messages > Ticket (assuming you have the ticketing addon) and at the top of the template code add this:
<style>

@media
print{.newpage {page-break-before:always}}
</style>
Then at the base of the file add:
<div class=”newpage”></div>

After pasting this code in text mode and saving, the code on top disappeard and this is confusing, like many other things….


Tony

  • Support Staff

March 30, 2016 at 5:15 am

Hi there,

Which documentation did you find that information on?

Are you adding that code within the Visual or Text mode of the ticket editor?


Wonderful2016

March 30, 2016 at 5:50 am

This was somewhere at your support search list, and yes, as i wrote:

After pasting this code in text mode and saving, the code on top disappeard

So this is not the right solution how I can make sure, every ticket does print on single printpage? As we discovered on the very first try, when someone is ordering more than one ticket, printing was printing with dividing a ticket in two pieces….

So what is a correct solution, if this disturbs?


Tony

  • Support Staff

March 30, 2016 at 6:03 am

This was somewhere at your support search list, and yes, as i wrote:

So not within the documentation, but within the support forums?

I guess this reply from another user:

https://eventespresso.com/topic/getting-cut-off-the-ticket-whenever-print/

You didn’t answer my question above:

Are you adding that code within the Visual or Text mode of the ticket editor?

Text mode – http://take.ms/VwKnC

Visual Mode – http://take.ms/PUzlT

You can not add HTML/Styles within Visual Mode, you must use Text mode.

So this is not the right solution how I can make sure, every ticket does print on single printpage? As we discovered on the very first try, when someone is ordering more than one ticket, printing was printing with dividing a ticket in two pieces….

If you add the code mentioned within that thread above in Text mode, the code will save and should work as expected.


Wonderful2016

March 30, 2016 at 8:35 am

Exactly – i did say ” i did paste this code in text mode and saving” see above 🙂
And did save it. Now when I look again, this code on top is not showing up any more in text mode – but I can see the bottom code: <div class=”newpage”></div> at the very end of text mode.
So I went in again and in text mode, pasting this code at very top and saving. As soon i go back to visual mode and back to text mode again, the code <style>

@media
print{.newpage {page-break-before:always}}
</style> is gone, or something else saved but not there so see anymore….
For me such things are very confusing…


Lorenzo Orlando Caum

  • Support Staff

March 30, 2016 at 9:37 am

Hello,

It sounds like you are on the correct track but if you are alternating between the visual and text mode, then it may be removing the sample HTML that you are adding.

Try this tutorial again in text mode and save and close:

https://gist.github.com/lorenzocaum/031c69b52877289f5412

If you need to make various changes to the template, then do that in whichever mode you are most conformable in and save changes. Then apply the changes in the link above last via text mode and then save and close.


Lorenzo

Viewing 5 reply threads

The support post ‘Printable Ticket – does not print on single page’ 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