• Resolved designium

    (@designium)


    Hello,

    I am trying to find information about how to create custom email notifications. For example :

    I have a 10 lesson course and I want to create a custom email notification after the user finishes the fifth course, ideally I would like to customize this notification with :

    – give a specific optional task to the student
    – inform the instructor about it.

    Is that possible? I think that could be an excellent add-on

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter designium

    (@designium)

    How about editing the quiz result.php, to show a specific message based in the quiz id that has been finished.

    <?php if ( $grade = $user->get_quiz_graduation( $quiz->id, $course->id ) ): ?>
    		<div class="custom notification">
    			<p>This is my custom notification</p>
    			<?php } ?>
    		</div>
    	<?php endif; ?>

    How can I specify the quiz id and the lesson id to show the custom notification?

    • This reply was modified 7 years, 4 months ago by designium.

    Hi,

    For your questions:

    Current LP does not support as per your request. But for #2, you can compare ID of Quiz/Lesson with which created on admin to show information respectively.

    Regards,

    Hien Phan.

    Thread Starter designium

    (@designium)

    Thanks Phan,

    I managed to solve it with acf to dynamically select the kind of the notification based in the quiz.

    The notification is managed with contact form 7, that way we control the requests made by the custom contact form.

    One thing I still need help, how can I keep my modifications made in result.php when you update the plugin?

    Regards,

    • This reply was modified 7 years, 4 months ago by designium.

    Hi,

    You can backup files that you changes code before updating LP in order to avoid from losing changes. Then copy those files back up to override.

    Regards,

    Hien Phan.

    Thread Starter designium

    (@designium)

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘custom email notifications’ is closed to new replies.