Support

Home Forums Multiple Event Registration Add-on Using Categories with Add to Cart shortcode?

Using Categories with Add to Cart shortcode?

Posted: January 17, 2017 at 10:41 am


Chester Bowl

January 17, 2017 at 10:41 am

I’m using this Add to Cart shortcode with the Multiple Events Registration Add-On, as documented at https://eventespresso.com/wiki/multiple-event-registration-add-on/:

[ESPRESSO_CART_LINK event_id=1-2-3 anchor=’Register for this Event’]

It works fine. My question is, can I use a category ID instead of individual event IDs?


Josh

  • Support Staff

January 17, 2017 at 10:52 am

No the short code only accepts event IDs.


Tony

  • Support Staff

January 17, 2017 at 10:52 am

Hi there,

Its currently not possible to use a category ID with the shortcode.

The function used for that shortcode is pluggable so with the help of a developer it would be possible to pass a category, pull the events from that category, loop over the ID’s add add them as if they had been set using the event_id parameter.

If you are not working with a developer currently you may want to try one of these:

https://eventespresso.com/developers/event-espresso-pros/

The support post ‘Using Categories with Add to Cart shortcode?’ 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