Support

Home Forums Event Espresso Premium Odd Pop Up Behavior

Odd Pop Up Behavior

Posted: November 2, 2016 at 1:48 pm


Tad Heigel

November 2, 2016 at 1:48 pm

Hi,

I am getting odd pop-up behavior on my website.

Example Registration Page

If you navigate to the above page and scroll down to the bottom you should see multiple ticket selectors each showing separate registration events/dates/times (BTW – the behavior I am describing takes place on pages with multiple ticket selectors present AND on pages with just one ticket selector present). To duplicate the pop error I am describing do the following…

1) Choose an event date to work with and then select “Begin Registration” (green button) WITHOUT selecting the number of attendees (tickets) you need – so the ticket selector should read 0.
2) After you have selected “Begin Registration” the page will just refresh and no Pop Up is triggered. Weird.
3) Now go ahead and use the event again, but this time make sure to select the number of tickets you need.
4) You will be brought to the next page where now you are shown the previous page’s pop up message??

This is very confusing and happens often. Most all our pop ups are extremely slow and sometimes don’t Pop Up on the correct pages.

I have edited no core files and am up to date on the plugin install.

What is happening and how do I fix this? I do not want to remove these errors… I want them to display correctly when needed so we can improve our user experience. We are getting multiple complaints about our checkout being difficult to use. =(


Josh

  • Support Staff

November 2, 2016 at 2:21 pm

Hi there,

In order to give you a fix we’d first need to see the full template code that’s in use to the page that has the ticket selectors. Is that something you can post into a paste bin or a gist, then link here?


Tad Heigel

November 2, 2016 at 2:44 pm

Thanks. This should work.

Parent Training Page
gist.github.com/anonymous/3081731130acddc43bea02d37ee2ac05

Single Training Page
gist.github.com/anonymous/60e19168365a9ba06be409ced6947180

Functions.php
gist.github.com/anonymous/6194b2631d4d32574b6edb2e46d9ee6e


Josh

  • Support Staff

November 2, 2016 at 4:53 pm

So on which ever pages where you’re displaying an ESPRESSO_TICKET_SELECTOR short code, you add this to the top of the template right after the opening PHP tag:

EE_Registry::instance()->REQ->set_espresso_page( true );

Then later, just before the while, you might need to add this:

global $wp_query;
$wp_query->in_the_loop = true;


Tad Heigel

November 7, 2016 at 11:58 am

Hey Josh. Thanks for the help! Your recommendation worked.

The support post ‘Odd Pop Up Behavior’ 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