Support

Home Forums Event Espresso Premium Recurring event dropdown without event list plus multi event booking not working

Recurring event dropdown without event list plus multi event booking not working

Posted: September 25, 2014 at 10:21 pm


James Rose

September 25, 2014 at 10:21 pm

I’ve got these two shortcodes on a page:

[ESPRESSO_EVENTS]
[EVENT_CUSTOM_VIEW template_name=”recurring-dropdown”]

But it shows the list of events as well as the recurring dropdown style. It explicitly says not to remove the ESPRESSO_EVENTS shortcode in the Wiki, so I haven’t (I did try, but that doesn’t work when you click the register button).

Also, I’ve installed the multi event booking add-on, yet the add to cart button doesn’t appear on the event list.


James Rose

September 25, 2014 at 10:22 pm

Oops forgot to post link: http://growthmentors.com.au/book/


James Rose

September 25, 2014 at 10:30 pm

One more question, how do you exclude events that are not yet open for registration from the list, or from the dropdown


Dean

September 26, 2014 at 1:32 am

Hi James,

While the ESPRESSO_EVENTS shortcode is needed, you dont need to put the EVENT_CUSTOM_VIEW on the same page.

Basically the ESPRESSO_EVENTS is used to power the plugin but doesnt need to even be shown on your menu or anything so long as it is published.

Have you activated the Multiple Event Registration addon?

Future events cannot be hidden unfirtunately, only expired ones.


James Rose

September 29, 2014 at 1:52 am

Hi

Ah I see, thanks for that. So the only way for someone to tell if an event is not open for registration is to end up on the events registration page and be told it is not available yet? If so, that seems less than ideal. They would have to try each event until they find the one that is open. Can this be modified in code?

Also, the multiple event rego plugin is definitely activated, and no add to cart button is showing. Example: http://growthmentors.com.au/event-registration/?ee=14


Dean

September 29, 2014 at 3:56 am

Hi James,

It should be possible to hide the future ones.

In the event_list.php file, at approx line 125 the is a foreach that starts

foreach ($events as $event) {

just below that line add this

if( strtotime($event->registration_start) > strtotime(date('Y-m-d H:i:s') ) ) {
continue;
}	

The file is found here, /wp-content/plugins/event-espresso/templates/event_list.php and it is best to copy that file and the event_list_display.php (they are paired) over to wp-content/uploads/espresso/templates.

That way, edits to the file wont be automatically deleted on plugin update.

Regarding the add to cart, it is showing correctly here: http://growthmentors.com.au/event-registration/

It doesn’t show by default on single registration pages, but you can make it do so quite easily: https://eventespresso.com/wiki/multiple-events-registration-use-add-to-cart-link-instead-of-default-registration-form/


James Rose

September 29, 2014 at 11:18 pm

Thanks a ton for this info Dean


Dean

September 30, 2014 at 1:11 am

You’re welcome!

The support post ‘Recurring event dropdown without event list plus multi event booking 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