I have added the following to my custom plug in on my site. Now I see a form appear where the customer can provide their details.
There is a custom message below the submit button of the ninja form that I would like to change. It currently says “Event Name is currently sold out.
Please check back again later, as spots may become available.”
How do I customize this message?
Thanks
/* Ninja Forms for Event Espresso 4 Waitlist */
// Display a contact form when the event is sold out
// to be used as a waiting list
function ee_espresso_clean_event_status( $event ) {
$status = $event instanceof EE_Event ? $event->get_active_status() : ‘inactive’;
return $status;
}
function ee_special_sold_out_message( $EVT_ID, $event ) {
//Set the ID of the Ninja Form you wish to call here.
$ninja_forms_id = 1;
//Check if the event is sold out.
if ( ee_espresso_clean_event_status( $event ) == ‘DTS’ ) {
if( method_exists( ‘Ninja_Forms’, ‘display’) ) {
//Using Ninja Forms v3+
Ninja_Forms()->display( $ninja_forms_id );
} elseif( function_exists( ‘ninja_forms_display_form’ ) ) {
//Using a previous version of Ninja Forms
ninja_forms_display_form( $ninja_forms_id );
}
}
}
add_action( ‘AHEE__ticket_selector_chart__template__after_ticket_selector’, ‘ee_special_sold_out_message’, 10, 2 );
The support post ‘EE4: How to customize waitlist message’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.