Support

Home Forums Event Espresso Premium Event bundles support

Event bundles support

Posted: October 2, 2012 at 6:25 pm

Viewing 6 reply threads


Sherry Holub

    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.


    Sherry Holub

      October 10, 2012 at 3:36 pm

      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.


      Dean

      • Support Staff

      October 11, 2012 at 5:08 am

      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.


      Sherry Holub

        October 12, 2012 at 11:15 am

        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.


        Dean

        • Support Staff

        October 15, 2012 at 2:56 am

        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.


        Chris Reynolds

        • Support Staff

        October 17, 2012 at 5:21 pm

        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: http://staging.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.


        Sherry Holub

          October 18, 2012 at 9:53 am

          Thanks for the replies.
          The thing that was lacking with multi events is the ability to associate multiple events as a single all-or-nothing package deal. The multi events does provide much of the other functionality needed so I am using it. What I have now is a bundle manager page where I can create a “bundle” and then add events to it.

          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.

          Viewing 6 reply threads

          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.

          Event Espresso - Staging Server