• Resolved Deleyna

    (@deleyna)


    LOVE the plugin.

    I’m on the current version of WordPress and all plugins.

    I’m using the New Moodle Enrollment email, but I’d like to customize it. I have created the override template, but it is not working. On that page, I have this notification under HTML template:
    “This template has been overridden by your theme and can be found in: astra-child/woocommerce/emails/new-enrollment.php”

    The file is definitely there and correct.

    I’ve confirmed that there is not any Woocommerce folder in the parent template.

    I’ve added this code to the functions.php of the child theme:

    /**
    * Add theme override support for woocommerce
    */
    function mytheme_add_woocommerce_support() {
    	add_theme_support( 'woocommerce' );
    }
    add_action( 'after_setup_theme', 'mytheme_add_woocommerce_support' );

    When that still didn’t work, I also tried creating a astra-child/moowoodle/emails/new-enrollment.php file — that also did not work.

    Whatever I do, I continue to get the standard template — which is SO CLOSE to what I need…but not quite there.

    I’m missing a piece of the puzzle. Can you help me?

Viewing 13 replies - 1 through 13 (of 13 total)
  • Ambyomoron

    (@josiah-s-carberry)

    This works well for me. I am not aware of any tricks to get this to work, so maybe I could give a few hints that might give you an idea about what is happening.

    The customized template should definitely go in astra-child/woocommerce/emails/new-enrollment.php, not moowoodle.

    When you configure the email in Woocommerce, if you click on the Show template button, do you see your customized template?

    Is it possible that you have configured the message to be HTML, but your client is viewing only plain text?

    I don’t know that “Add theme override support for woocommerce” has anything to do with the issue. I don’t have that function in my theme’s function.php (I stress the “don’t know” part).

    If you can see the template from within WooCommerce settings, I don’t suppose there is an issue of file permissions.

    Thread Starter Deleyna

    (@deleyna)

    Thanks for the help. I can see my custom template in the woocommerce email settings. I’m sending the test to myself, so I have the emails. They certainly look like HTML but I may try overriding the plain email as well.

    Do you know what multipart is?

    I’ll remove the extra moowoodle directory. I thought that was a long shot. ?? I’m ready to try anything. It feels like it should be working… I definitely can see it. But what comes is the generic new enrollment letter. I just need to add a bit more info to that…

    Ambyomoron

    (@josiah-s-carberry)

    Many email clients give the user the possibility to view incoming email either in html format or in plain ascii format. A multipart email sends both. The email client displays the version corresponding to how the user has configured it. The idea is that you may wish to present the text somewhat differently if you do not have html tags available and you do not wish to rely on the automatic rendering of the html as plain text.

    As to your base problem, I don’t have any other ideas, except to enable whatever error display and logging you can. This might give you a hint about what is going on. Look, too, at your web server error log.

    Thread Starter Deleyna

    (@deleyna)

    This is making me crazy.

    I’ve removed the extra function from functions.php. I’ve deleted the moowoodle part. I’ve deleted and recreated the override.

    There is a typo in the new-enrollment.php.

    I can see the override template in my WooCommerce Emails settings page. I’ve edited just the typo. It saves. I’ve gone in via FTP — the file is there. It clearly shows my corrected version:
    “You are enrolled in” as opposed to “YouR are enrolled in”

    But what comes in the email is an html version that says “Your are enrolled in” — it is ignoring the override as if it does not exist at all. I’ve checked the path multiple times…even though when I view the template in the email settings, I see the corrected version.

    Still…the system sends the old one.

    I may have to try a different theme and see if that makes a difference. We need this to work!

    Thread Starter Deleyna

    (@deleyna)

    I switched to 2017 theme, did the override. Confirmed it was there. Resent the letter. It still has Your in it…so the override is not functioning regardless of theme for me.

    This is holding up releasing the site, so I’m going to have to research other options. I’m frustrated. I love woomoodle as opposed to edwiser. I want a light integration that will work with woocommerce.

    But I need these welcome letters. Hmmmm….

    Thread Starter Deleyna

    (@deleyna)

    I do want to say thanks, Josiah. I appreciate the answers. It is good to know that this works for someone else…

    Ambyomoron

    (@josiah-s-carberry)

    It would be nice to get the plugin author to participate in this discussion.

    Anyway, if you find something better, do let us know.

    By the way, your worst case solution is to edit the original template directly (maintaining a backup, of course). I am sure you know all the reasons why this is not normally a good idea.

    Thread Starter Deleyna

    (@deleyna)

    I do know why that’s not a good idea. I’ve come close a couple of times, but resisted. Yes, it would be amazing if the author would chime in.

    What I’m going to do is to add a note to each class product with a link to a page that has all of the information students will need. I may even turn that page into a tour of the classrooms.

    Then I’ll just turn this letter off. Sadly. It would have been an ideal solution for us.

    But I’m hoping to make the page a feature-rich add-on to our system rather than a make-do. I may even do some screen capture video. We’ll see!

    I really appreciate the feedback, Josiah. Glad it worked for you!

    Thread Starter Deleyna

    (@deleyna)

    @josiah I noticed that they told you to start your own thread and seconded your concern. Thank you so much for letting me know that it didn’t work for you, either. (I thought I was losing my mind…) They did release an update today, but I’m not sure if it fixed it. I had to switch to Edwiser. I had hoped to use the lighter MooWoodle, but with things like this and the struggle I had getting support, I am uncomfortable using it. Edwiser is a beast to set up, and I’m delaying going live for a couple of days to trouble shoot all of the extra add-ons and such required. But the emails worked right out of the box and were editable inside the program. So…there’s that. I’m keeping MooWoodle as my plan B because I really did like the process of selling and going to the Moodle side much better.

    Ambyomoron

    (@josiah-s-carberry)

    The new version didn’t fix that problem. I suppose it just removed the superfluous “r” in the email template.

    Thread Starter Deleyna

    (@deleyna)

    Sigh.

    Down Town

    (@downtown2017)

    Our replies are inline :

    – I’m using the New Moodle Enrollment email, but I’d like to customize it. I have created the override template, but it is not working. On that page, I have this notification under HTML template:
    “This template has been overridden by your theme and can be found in: astra-child/woocommerce/emails/new-enrollment.php”

    >>To override templete add new-enrollment.php to astra-child/dc-woodle/emails/new-enrollment.php

    We are also looking into the other issues, we will keep you posted.

    Down Town

    (@downtown2017)

    @deleyna, @josiah-s-carberry, hope all the issues are resolved now, so we are closing this thread.

    If you have any further query please open another thread.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘New Moodle Enrollment custom email’ is closed to new replies.