Support

Home Forums Event Espresso Premium Printing Tickets – Speed

Printing Tickets – Speed

Posted: May 5, 2019 at 5:44 am

Viewing 14 reply threads


RolandK

May 5, 2019 at 5:44 am

Hello,
I used the same HTML ticket in our website. Is was 4 tickets on one A4 A4 but now each ticket is printing out on a seperate A4 paper.

Hope somebody can help me.

Further need expertise Speeding Up our EventEspresso website.

Thanks,
Roland


Josh

  • Support Staff

May 6, 2019 at 8:29 am

Hi,

We’ve received your request for priority support. I’ll reply back here with what we find.


Josh

  • Support Staff

May 6, 2019 at 8:56 am

Hi Roland,

I checked and it appears the tickets do all fit on one sheet of paper. I’ll reply again with a private reply that includes a transactions ticket URL.


Josh

  • Support Staff

May 6, 2019 at 8:57 am

This reply has been marked as private.


Josh

  • Support Staff

May 6, 2019 at 8:58 am

With regards to the website’s speed, it looks like you’ll need to contact your host and ask them to investigate, and possibly upgrade to a VPS. One thing I’m seeing is a lot of 502 Bad Gateway errors, so maybe they can find why those errors are happening.


RolandK

May 6, 2019 at 9:22 am

This reply has been marked as private.


Josh

  • Support Staff

May 6, 2019 at 9:56 am

Hi Roland,

I found this in one of your print stylesheets:

.outside:not(:first-of-type) {
	page-break-before:always
}

So that can be overridden inline for that one custom ticket template. I added:
page-break-before: auto;
to the inline styles, and the tickets no longer force a page break.

You’ll need to contact your host about the web site speed and 502 bad gateway errors.


RolandK

May 6, 2019 at 10:24 am

Thank you very much Josh. I follow up tomorrow.

Have a good one!
Roland


RolandK

May 7, 2019 at 3:02 am

Hi Josh,

FYI:

The host did a TTFB measurement and reported me to check the active theme or plug-ins. After disabling and enabling some plug-ins, I found one which was the problem of slowing things up. 4 years old plug-in ( named: Back To Top ).

Never thought about that :-/.

Lesson learned and Thanks For the Quick CSS Print Solution.

Happy days!
Roland


RolandK

May 7, 2019 at 5:10 am

This reply has been marked as private.


RolandK

May 7, 2019 at 5:57 am

This reply has been marked as private.


Josh

  • Support Staff

May 7, 2019 at 9:51 am

With regards to the missing translation for “Attendee %d” you’ll likely need to download the latest .pot file, then merge to your custom .po file using Poedit. (Under Catalog → Update) from the .pot file.

Then, after verifying the translated string, export to .mo and upload to /wp-content/uploads/espresso/languages.


RolandK

May 7, 2019 at 10:52 am

Thanks Josh, I must do something wrong.

Getting this error message in Poedit when Update from .pot file:

warning: Internationalized messages should not contain ‘\ r’ control codes


Josh

  • Support Staff

May 8, 2019 at 6:43 am

Actually you’re not doing anything wrong, it’s been found there are some strings that need to be removed from the POT file. Until that’s done, you can add this code snippet to a functions file to force the translation:

add_filter( 
    'gettext_with_context', 
    'mycustom_filter_gettext_with_context', 
    10, 
    4 
);
function mycustom_filter_gettext_with_context( 
    $translated, 
    $original, 
    $context,
    $domain 
) {
    // This is an array of original strings
    // and what they should be replaced with
    $strings = array(
        'Attendee %d' => 'Bezoeker',
        // more strings with context here if needed
    );
    // See if the current string is in the $strings array
    // If so, replace its translation
    if ( isset( $strings[$original] ) ) {
        // This accomplishes the same thing as __()
        // but without running it through the filter again
        $translations = get_translations_for_domain( $domain );
        $translated = $translations->translate( $strings[$original] );
    }
    return $translated;
}

You can add the above to a functions plugin or, if available, into your WordPress child theme’s functions.php file.


RolandK

May 9, 2019 at 1:34 am

Yes that worked good for me Josh.

Thank You Very Much!

Viewing 14 reply threads

The support post ‘Printing Tickets – Speed’ 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