Support

Home Forums Event Espresso Premium EE4 with waitlist not working

EE4 with waitlist not working

Posted: November 6, 2017 at 4:21 pm

Viewing 8 reply threads


Charu Chandiram

November 6, 2017 at 4:21 pm

Have created a Ninja form and added the following to a site specific plug in but this not cause the Ninja form to appear when an event is at capacity. What am I missing?

/* 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 );

function tw_custom_sold_out_message( $original_text, $event ) {
return ‘<p class=”no-ticket-selector-msg clear-float”>Sorry, ‘ . $event->name() . ‘is currently sold out.<br/>We will contact you if a spot becomes available.</p>’;
}
add_filter(‘FHEE__EE_Ticket_Selector__display_ticket_selector_submit__sold_out_msg’, ‘tw_custom_sold_out_message’, 10, 2 );

Thanks!


Tony

  • Support Staff

November 7, 2017 at 3:01 am

Hi there,

If you edit the event and look at the ‘Active status’ in the sidebar, what does it show there?

Can you link me to the event you are testing so I can take a look?


Charu Chandiram

November 8, 2017 at 6:42 pm

If I edit the event and look at the “Active Status” it shows “Sold Out”

The event I am testing with is https://classicalhatayoga.com/events/2017-november-yogasanas-redmond/

Thanks for your help!


Tony

  • Support Staff

November 9, 2017 at 2:36 am

Hmm, ok.

Can you post a screenshot of the event editor for that event, please?

That function is working fine on my test sites so I needed to confirm your setup.


Charu Chandiram

November 13, 2017 at 4:58 pm

Please see the screenshot at https://1drv.ms/f/s!AkXP4f0zZriinIwp7xEtWnTIxfTQ6A Thank you!


Josh

  • Support Staff

November 13, 2017 at 5:49 pm

Hi Charu,

Your site’s version of Event Espresso is 25 versions behind, so your mileage may vary with what works and what doesn’t. Along with the above, have you checked to see if your site specific plugin is activated or deactivated on the WP > Plugins page?


Charu Chandiram

November 13, 2017 at 7:27 pm

Hi Josh, Have updated the EE plugin. It is Active in the WP->Plugins page and shows the version as Version 4.9.50.p

Updating the version did not help to get the waitlist option to show up. What are the other things we can try?

Thanks!


Josh

  • Support Staff

November 13, 2017 at 8:02 pm

Have you checked to see if your site specific plugin is activated or deactivated on the WP > Plugins page?


Garth

  • Support Staff

July 25, 2018 at 12:47 pm

I know you’re using forum plugin, but I wanted to let you know that the official Event Espresso 4 wait list add-on is now also available: https://eventespresso.com/2018/07/wait-list-manager-event-espresso-4/

Viewing 8 reply threads

The support post ‘EE4 with waitlist not working’ 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