diff --git a/lms/lms/doctype/lms_certificate/lms_certificate.py b/lms/lms/doctype/lms_certificate/lms_certificate.py index 76f70fd3..a859dafc 100644 --- a/lms/lms/doctype/lms_certificate/lms_certificate.py +++ b/lms/lms/doctype/lms_certificate/lms_certificate.py @@ -35,10 +35,10 @@ class LMSCertificate(Document): custom_template = frappe.db.get_single_value("LMS Settings", "certification_template") args = { - "student_name": self.member_name, + "member_name": self.member_name, "course_name": self.course, "course_title": frappe.db.get_value("LMS Course", self.course, "title"), - "certificate_name": self.name, + "name": self.name, "template": self.template, } diff --git a/lms/templates/emails/certification.html b/lms/templates/emails/certification.html index 3e8b261b..43babd1b 100644 --- a/lms/templates/emails/certification.html +++ b/lms/templates/emails/certification.html @@ -1,5 +1,5 @@

- {{ _("Dear ") }} {{ student_name }}, + {{ _("Dear ") }} {{ member_name }},


@@ -10,7 +10,7 @@ {{ _("With this certification, you can now showcase your updated skills and share your achievement with your colleagues and on LinkedIn. To access your certificate, please click on the link provided below. Make sure you are logged in to the portal.") }}


-{{ _("Certificate Link") }} +{{ _("Certificate Link") }}

{{ _("Once again, congratulations on this significant accomplishment.")}}