• Resolved mayronguevara

    (@mayronguevara)


    good day, I’m facing an issue when an student is registered in a course and when He / She begin the course we receive an email, but in the email is missing / not appearing the course name, only appear:

    Your student has begin a course

    Your student
    Name of the Student

    has begin the course

    HERE IS MISSING THE NAME

    manage your students here

    attachment an example (in spanish, my apologies).:

    http://www.mambosondc.com/download/Captura.PNG

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @mayronguevara ,

    I’m not able to duplicate this on my test site: https://cloudup.com/cWZJ3uL-AHk

    Have you customized the email templates at all?

    I’d also check if there might be a conflict with one of your current plugins or your theme.

    Try disabling all of your plugins except Sensei LMS (and extensions). Then try testing again to see if the issue persists. If that resolves your issue, you can find what was causing it by enabling each plugin one by one while continuing to test.

    If that doesn’t help, you can also try switching to the Twenty Twenty theme via Appearance > Themes, and test again. If the issue is resolved then you know it’s a problem with the theme, and you’ll need to contact the theme author for further assistance.

    Let us know how it goes.

    Best,

    Thread Starter mayronguevara

    (@mayronguevara)

    Hi:
    Have you customized the email templates at all?
    No. i have the default templates for emails.

    I have disable all the plugins but the issue continue.

    I will try to change the Theme. but, I have a question, the layout (css) of the email is related with the theme, is it not independent? becaue the colours, fonts , etc and very different in my theme that in the email.

    http://www.mambosondc.com/download/Captura.PNG

    Thread Starter mayronguevara

    (@mayronguevara)

    and additional and important think:

    checking the template (teacher-started-course.php) , I have noted the CSS is already defined in the begin of the page:

    $small = 'text-align: center !important;';
    
    $large = 'text-align: center !important;font-size: 350% !important;line-height: 100% !important;';

    and, in the body email:

    <?php do_action( 'sensei_before_email_content', $template ); ?>
    
    <p style="<?php echo esc_attr( $small ); ?>"><?php esc_html_e( 'Your student', 'sensei-lms' ); ?></p>
    
    <h2 style="<?php echo esc_attr( $large ); ?>"><?php echo esc_html( $learner_name ); ?></h2>
    
    <p style="<?php echo esc_attr( $small ); ?>"><?php esc_html_e( 'has started the course', 'sensei-lms' ); ?></p>
    
    <h2 style="<?php echo esc_attr( $large ); ?>"><?php echo esc_html( get_the_title( $course_id ) ); ?></h2>

    use the same attribute for:
    $learner_name and $course_id

    but seems the function: “get_the_title” is returning and empty string,

    I have modified only for test purposes the line, and the CSS is ok:

    <h2 style="<?php echo esc_attr( $large ); ?>">COURSE NAME: <?php echo esc_html( get_the_title( $course_id ) ); ?> || COURSE ID: <?php echo $course_id ; ?> </h2>
    

    check the new output here:

    http://www.mambosondc.com/download/modified.png

    where is clear that function is the problem. the course ID is ok, and printing.

    let me know if this help to know where will be the issue and how I could fix it.

    thank you so much for your time and help.

    Hi @mayronguevara

    My apologies for the delay in responding!

    If you’re stillh aving this trouble, make sure you’re updated to Certificates version 2.0.7.

    Next, in Certificates->Certificate Templates, would you make sure that you have the course name shortcode included, as seen here: https://cloudup.com/cnEATB4jd5s

    (the code is {{course_title}}

    That should result in a certificate that displays the course correctly: https://cloudup.com/cPR8MVmAFHj

    Best,

    Marking as resolved.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Student course email without course name’ is closed to new replies.