Allow different registration mails per registrant type

Created on 26 September 2024, 2 months ago

Problem/Motivation

Currently site builders can configure a single set of notification emails that are sent out to visitors that are registering for events. But sometimes depending on the registrant type different information should be sent out. It would be interesting to be able to define different email content for different registrant types.

Proposed resolution

Provide an option on the registrant edit form to override the default email message with a custom one.

Feature request
Status

Active

Version

2.0

Component

Recurring Events Registration (Submodule)

Created by

🇧🇬Bulgaria pfrenssen Sofia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @pfrenssen
  • Pipeline finished with Success
    2 months ago
    Total: 178s
    #294705
  • 🇨🇦Canada endless_wander

    @pfrenssen could you post a description or screenshots of what this change does?

  • Pipeline finished with Success
    2 months ago
    Total: 181s
    #296201
  • 🇧🇬Bulgaria pfrenssen Sofia

    The MR adds vertical tabs to the registrant type edit form so you can override specific notifications depending on the registrant type. For example it allows to send different notifications to users who have paid for a ticket, or won a free ticket, or are registering as a group, ...

  • 🇨🇦Canada endless_wander

    I'm not able to test the changes. Adding to my site temporarily using generated patch with 2.0.1 module installed. Do your changes here require some of the changes in your other issues?

    My own preference is that it would be nicer to have all the possible registration email settings on the main Registrant Settings page at /admin/structure/events/registrant/settings so that they are all visible and editable in a single place. Easier to compare them and update multiple ones at the same time.

  • 🇧🇬Bulgaria pfrenssen Sofia

    @chrisla that is also a possibility, but this might become unwieldy if a project has many registrant types. It is also quite natural in Drupal to consolidate all options that apply to an entity type inside the bundle edit form (see for example the node type edit form).

    I also think it likely that future feature requests will be made to make more of the current options in the Registrant Settings form configurable per-registrant type. For example a customer might want to enable the "Show capacity" option only for in-person attendees, while online attendees are unlimited and should not see the option. And messages might also be something that people want to configure per-registrant type?

    The functionality is disabled by default, so existing users should not be impacted. There is an update hook in the MR that disables it for all registrant types.

Production build 0.71.5 2024