• Resolved netgemacht

    (@netgemacht)


    When a booking was sent by the form. There is a notification text in the form.

    It is in german and says: Vielen Dank für Ihre Buchung. Sobald Ihre Zahlung bestätigt wurde senden wir Ihnen umgehend Ihre Tickets zu.

    I’ve found this text in the eventorganiser-de_DE.po file and changed it there. But there is still the same text.

    Where can I change this text?

    https://wordpress.org/plugins/event-organiser/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Stephen Harris

    (@stephenharris)

    Are you wanting to fix the translation or change the text? The .po file is intended for translators and needs to converted into .mo file to be used by the plug-in – however, these are intended only as translations, and not as means of changing the text.

    If you want to change the text you can use the following:

    add_filter( 'eventorganiser_booking_form_form_display_notices', 'my_booking_form_notices', 10, 2 );
    function my_booking_form_notices( $notices, $booking_form_view ) {
        if ( isset( $notices['booking-complete'] ) ) {
            $current_user = wp_get_current_user();
            $notices['booking-complete'] = 'Your booking complete message';
        }
        return $notices;
    }

    Simply add that to a site-utility plugin (it can also go in your theme’s functions.php, but that is not recommended as you will need to remember to copy it across should you ever change theme).

    Thread Starter netgemacht

    (@netgemacht)

    Thanks Stephen!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Change Notification Text in Form’ is closed to new replies.