Posted: October 2, 2012 at 6:25 pm
|
We are using event-espresso and Multi Event Registration for a full-fledged course sales and management website. One of the requirements is to have a way of bundling events together as an all-or-nothing package deal. There would also be a widget added for displaying upcoming bundled events. My idea was to write a plugin for event-espresso which adds a BundleHeader table to the schema which has the bundle’s meta data stored in it (bundle name, description, etc.). There would also be a BundleDetail table that links events to a bundle. The event data entry person would be able to add bundles on a bundle management page and then be able to assign/unassign events to the bundle through the event management page. In addition to the new tables and management page, there is a requirement to send only a single confirmation email per order/transaction. I’m new to event-espresso so I’m looking for guidance on leveraging existing code as well as being compatible with updates to event-espresso. I’m open to any ideas on how to implement this. Thanks.
|
|
I’ve ran into a problem and I’m hoping that if I post in this forum I can get some assistance. There doesn’t seem to be a way to put my Bundles Overview option menu as a sub-menu of event espresso’s. Is there a way to do that without hacking EE code? I can add the sub-menu but clicking the link results in “You do not have sufficient permissions to access this page.” error. Might this be caused by the fact that EE hasn’t created the menu yet? There is no hook that I can find that let’s me setup my plugin after EE is done. Again, any assistance or even a quick reply “i don’t know” would be very much appreciated. |
|
Hi Sherry, Have you had a look at the admin_menu.php file in includes/functions? I am also thinking it may be easier to create a custom function (uding the Custom Files add on) rather than a separate plugin. |
|
Thanks for the reply. Yes I did look at the admin_menu.php file. The custom files add on is being used for certain aspects of the bundles plugin, but I didn’t realize the custom files addon provided hooks into the activation event, deactivation event and the admin menu event. All of these are necessary in order to create the new database tables for bundles and to add the new bundle overview menu to the EE admin menu. |
|
Hi Sherry, The custom files, has a custom functions file in it and here you should be able to modify the functions used elsewhere in the plugin. You would probably have to copy the entire function over, remove the add_action on the function and add it back in with the modified function. With 3.2, when it gets launched, we are trying to make it with lots of hooks to make modifications somewhat easier for developers. |
I’m pretty sure there was a function that was added specifically for this purpose (allowing custom submenu items). That said, currently there are several add-on plugins that need to be updated when the submenus change so maybe I’m remembering incorrectly. Re: your bundles idea — you may be overcomplicating things a bit because what you’re looking for can already be done with Multi Event Registration. See: https://eventespresso.com/wiki/shortcodes-template-variables/#add-to-cart particularly the shortcode to add multiple events to the cart. It’s a more manual process, e.g. there isn’t an admin page for it, but from what I understand from your description it would accomplish the same task. |
|
|
Thanks for the replies. What’s left to do is create an upcoming events control/widget that works with bundles. There is also some modification to the registration code that will prevent users from removing single items of a bundled event from the cart. |
The support post ‘Event bundles support’ 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.