Support

Home Forums Event Espresso Premium Shortcode or PHP Code for Series of Events

Shortcode or PHP Code for Series of Events

Posted: July 24, 2013 at 4:22 pm

Viewing 3 reply threads


Keith Portman

July 24, 2013 at 4:22 pm

Is there a possibility of a shortcode/php code that allows for registration of multiple events within the same series? I’m currently using the multiple event shortcode ([ESPRESSO_CART_LINK event_id=”1-2-3-4-5-6-7-8-9-10-11-12-13-14-15″ anchor=”Register for These Events”]) but almost all of my roughly 500 events (per half year of school) are series of 10-15 days. This takes a LOT of time. I’m hoping there’s a faster solution. Please tell me there is! 🙂 Thanks in advance for your help.


Josh

  • Support Staff

July 24, 2013 at 5:11 pm

Hi Keith,

It might make more sense to only open one event for the series for the registration. The dates that are there for informational purposes could be flagged to not be register-able by using the ee_meta.

There’s a guide in the forums that may help if you go this route:

https://eventespresso.com/wiki/selectively-hide-the-add-to-cart-link/#method-2


Keith Portman

July 24, 2013 at 5:35 pm

Unfortunately having all 13 dates with their own event instance is essential because i’m going to require attendance tracking.


Josh

  • Support Staff

July 25, 2013 at 7:22 am

Hi Keith,

In that case you might try the scripts that Sidney put together that use a little jQuery to hide and clone and the reg forms and the quantity selectors in the Multi Event Registration cart:

https://github.com/sidharrell/eventespresso

Although for the ticket quantity selector I’ve used something like this in the past:

<script>jQuery(document).ready(function(){
    jQuery(".price_id").val(1);
    jQuery('#event_espresso_refresh_total').trigger('click');
});
</script>
Viewing 3 reply threads

The support post ‘Shortcode or PHP Code for Series of Events’ 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