Support

Home Forums Event Espresso Premium My Events – "You have no events yet"

My Events – "You have no events yet"

Posted: March 27, 2017 at 10:45 pm

Viewing 13 reply threads


jbbruning

March 27, 2017 at 10:45 pm

Apologies for all the emails…

Hi.

I’ve bought the user integration add-on, and i had previously purchased an event as a test. However the My Events page i’m using (applying the shortcode) i’m getting a “You have no events yet” message.

Any reason why that might be?

Thanks


jbbruning

March 27, 2017 at 11:32 pm

Slowly making progress….

My Event and ticket details are now showing (which is great)

However, along with some of the important info, there is a lot of data not required. Including;

“Approved Registration, Active Event
Cancelled Registration, Expired Event
Declined Registration, Cancelled Event
Incomplete Registration, Sold Out Event
Not Approved Registration
Pending Payment Registration, Upcoming Event
Wait List Registration, Upcoming Event
Inactive Event
Postponed Event
Edit the registration details.
Resend registration notification.
Make a payment
View Receipt
View Invoice”

Also there is a section at the top of my page with the label “actions” but an unclickable cog.

There are clickable links further down my page (person, email, invoice, order confirmation).

So my question is how best remove the elements i don’t need (or don’t do anything)? I can hide with CSS i’m sure, but i also wanted to make sure that it wasn’t part of a bigger issue having loads of non-essential content.

Cheers again for your ongoing help.


jbbruning

March 27, 2017 at 11:38 pm

Hmmmmm, my page does not look (or behave) like this

https://eventespresso.com/wp-content/uploads/2015/09/my-events-expanded-2.gif


Tony

  • Support Staff

March 28, 2017 at 4:21 am

Hi there,

It sounds like the CSS and JS files are not being loaded on the page, are you adding the shortcode directly to the page or are you using a visual builder on the site?

If you create a new test page and add the [ESPRESSO_MY_EVENTS] there does it work correctly?


jbbruning

March 28, 2017 at 1:58 pm

Hi Tony,

I’ve added the above shortcode to a normal page (i’m using Beaver Builder), but it’s correctly sitting in the text editor in normal backend view, so yes i guess no CSS or JS is being loaded.

Is there another method to force the CSS & JS to load?

I deactivated plugins and switched themes, and neither helped.

Thanks


Josh

  • Support Staff

March 28, 2017 at 3:45 pm

Hi there,

The CSS & JS should get triggered to load if the post ID for your page becomes associated with the short code. With the other plugins deactivated and switched over to the default theme, you then go to edit that page and make sure the page content has the shortcode, then you click on Update. Then you can reactivate the other plugins and switch back to the original WP theme.


jbbruning

March 28, 2017 at 10:04 pm

That’s fixed it. Many thanks for your help : )


jbbruning

March 28, 2017 at 11:07 pm

Hi again. It’s working fine on a normal page now, but if i use the shortcode within my functions.php file it’s not formatting. Would that be expected? I’m using shortcodes on a number of places via functions.php and they seem to be fine.

The way i’m using the shortcode in functions is as content within a woocommerce “my account” endpoint.

Thanks – nearly solved : )


Tony

  • Support Staff

March 29, 2017 at 4:24 am

Yes that’s expected, EE can’t track the shortcode if you add it via a function so then the JS and CSS files aren’t loaded.

I’m using shortcodes on a number of places via functions.php and they seem to be fine.

EE shortcodes?

The way i’m using the shortcode in functions is as content within a woocommerce “my account” endpoint.

Can you post the code you are using on a gist and add the url here so we can view it?


jbbruning

March 29, 2017 at 6:42 am

Hi Tony

No, the shortcodes are for Sensei (woo’s LMS) and myCred. Both of those work fine.

I’ll sort the code and send across.

Is there a way to call the JS & CSS when the shortcode is used within a function?


Josh

  • Support Staff

March 29, 2017 at 8:27 am

You can do something like this:

add_action( 'template_redirect', 'my_load_wp_user_my_events_assets' );
function my_load_wp_user_my_events_assets() {
  if ( class_exists( 'EES_Espresso_My_Events' ) && is_page(123) ){
    add_action( 'wp_enqueue_scripts', array( 
      'EES_Espresso_My_Events', 
      'enqueue_styles_and_scripts' 
    ) );
  }
}

and swap in your page ID. The important thing is the code need to fire early enough so it fires before wp_enqueue_scripts, but late enough so the
EES_Espresso_My_Events class is loaded, and late enough so WordPress knows the current page ID.


jbbruning

March 30, 2017 at 4:42 am

Hi Josh

Thanks for helping.

Unfortunately, nothing shows at all when I use the above code with my page id. The page link for reference http://anzcpportal.staging.wpengine.com/my-account/ and then “My Upcoming Events”, although all tabs are the same page/pageID.

Any thoughts?


jbbruning

March 30, 2017 at 4:52 am

Apologies, it does work. I loaded up an old version of my functions.php without the shortcode (ooops).

All good, thanks for your help : )


Josh

  • Support Staff

March 30, 2017 at 8:19 am

You’re welcome. FYI before you migrate to the production site from staging, you will need to contact WPEngine and ask them to set the Event Espresso checkout pages to be excluded from the cache:

https://eventespresso.com/wiki/setup-wpengine-hosting-event-espresso/

Viewing 13 reply threads

The support post ‘My Events – "You have no events yet"’ 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