Posted: June 9, 2016 at 10:30 am
I tried placing a widget on my sidebar but when I try to enter attendees and go back, the widget is either not showing up or, if it’s showing up, doesn’t list the names. Site is http://www.servextra.com/ |
|
Hello, I looked at the sidebar for the page and I did not see the widget for the multiple event registration add-on. Could you double-check that it is enabled on your site and then update your support post so we can have another look? — |
|
Hello, Yes, that’s the very issue I’m having. It sometimes show up, and it sometimes does not. Regards |
|
… and when it shows up, it doesn’t list the names. |
|
Okay, lets try these steps. 1) Go to WP-admin –> Appearance –> Widgets and ensure that it is enabled in your sidebar. I do see your screenshot but I’m not sure if you have removed it since then. 2) Share a link to any active event page where I can add an item to the cart Once we can see the widget, then we’ll inspect it to see if there is some content there but may be invisible if the font text is white since the background is also white in color. — |
|
Widget is active. Try this event: |
|
Hi Todd, So the cart widget should be displayed within the side bar on the home page correct? Do you have multiple sidebars or just one? The widget checks your PHP session for events before it displays, its using this code:
If espresso_session has no events_in_session the widget doesn’t do anything and just skips out. So its possible that something is altering the session and breaking that check. Are you comfortable editing PHP files and using FTP? If you are comfortable editing files, I can give you a couple of things to check and see if it makes a difference. |
|
Yes, I’m comfortable editing files. |
|
Actually first check if your server has sessions setup correctly, navigate to: Event Espresso -> System Status. Look for ‘PHP Sessions’, does it have a path set there and does it say it is writable? The first step I would take was to check the widget loaded with the above check removed: \espresso-multi-registration\cart-widget.php Line 25 should have:
Comment that out:
Then check if the cart loads within the side bar without adding any events to the cart. Add an event to the cart and confirm it shows within the widget? You can also add:
Just below the line you just commented out to follow the session along. |
|
PHP Sessions is green and writable. I placed the site in a staging server. When I comment out the line, the widget’s throwing out an error. |
|
I also tried placing some orders and the widget’s not showing anything |
|
I spent some time investigating this and it looks like an issue with the [ESPRESSO_CART_LINK] shortcode. If I add the events using the default link within your event list here: http://serveextra.staging.wpengine.com/event-registration/ This one at the bottom of each event – http://take.ms/YWsA3 The events are added to the widget correctly and display as they should. If I use the ‘Register’ button you have created using the [ESPRESSO_CART_LINK] shortcode the event does not display within the widget – http://take.ms/XjoIS 1-3 was added using the default cart link, 4 was added with the Register button. The function is pluggable which means we can override the original with a custom version that includes a fix if you would like to test it? If so place this file – http://take.ms/eZ4yg Within /wp-content/uploads/espresso/ I have created a ticket for this which will be reviewed and tested. If no other issues are found when using it the fix will be included within core. |
|
I think the plugin’s working now thanks |
|
I just tried it on the main site but it’s not working |
|
If it works on the staging site but not the production site it could be an issue with WPEngines caching. You won’t see it on the staging server as caching is disabled on staging. Are you logged into the production site when testing? You may need to contact WPEngine and have them disable caching where ever you want the cart widget to be displayed. |
|
I’m on incognito in chrome when testing and I’ve also used firefox. It maybe a caching issue as it has worked when I’m logged in. Will talk to them then get back here. Thanks. |
|
It does sound likely it’s being cause by caching. The no name entries within the widget should be fixed with that custom function but if the widget is not showing at all when no logged in but does when logged in its likely caching. Please keep us updated with how you get on 🙂 |
|
The support post ‘EE3 Multi Event Registration Widget 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.