Okay
  Public Ticket #3433017
How do you edit reminder emails to include virtual event location
Closed

Comments

  • SaskiaGM started the conversation

    Hi there,

    When someone RSVP's to a virtual event, how do I get the system to send the attendee an email 2 days before an event to remind them that it's coming up and give them the option to cancel or confirm attendance and then how do I get the system to send them an email 2 hours before the event including the event location link (as set up under 'locations'?

    Our site is memberpress/buddyboss and everyone's profile is linked to an email address.

    Thanks for the help,

    Saskia

  •  877
    Zhivko replied

    Hi,

    The users themselves must request a reminder via the event reminder option.

    It is possible to implement automatic reminders by inserting custom code (hook) into your theme or child-theme's (recommended) functions.php file.

    I am attaching the code to a file.



    Attached files:  Attendance auto add remind.zip


    Stachethemes Developer

  • SaskiaGM replied

    Hi there,

    So when someone subscribes for a reminder - how do I customise when that email is sent and what the contents of it are?

    Thanks so much,

    Saskia

  •  877
    Zhivko replied

    From Calendar Dashboard -> Settings -> Email Notifications -> Reminders.

    2803869431.png
    5684967128.png



    Stachethemes Developer

  • SaskiaGM replied

    Hi Zhivko,

    I can see this in my editor but where exactly can I customise *when* the email is sent out and what is contained in the email?

    I need to make sure the email is sent out 2 days before the event to either confirm or cancel the attendance and in the email 2 hours before the event I need to make sure the email itself includes a link to the virtual event location I set up with the event.

    Thanks,

    Saskia

  •  877
    Zhivko replied

    The remind date is set to 2 days before the event in the hook I've sent you here:

    2403121773.png

    You can use {{event_permalink}} placeholder for the event permalink. E.g.:

    9113724087.png

    If you need more control over the content you can check the mail function in src\includes\class.mail.php

    3459846603.png

    Inside this function there are filters for the subject and the content:

    6845285715.png

    You can use the "stec_send_reminder_content" filter to create more specific content directly via php.

    Example:

    /**
     * Filter the email content that is sent to the user
     * @param string $content The email content
     * @param integer $remind_id The reminder id ( see src\includes\posts\class.post-stec_remind.php )
     */
    add_filter('stec_send_reminder_content', function($content, $remind_id) {
        $new_content = "..."; // your new email content
        return $new_content;
    }, 10 ,2);


    Stachethemes Developer