Support » Plugin: WooCommerce » Cannot override the reset password email template

  • Hi there,

    I’ve having a problem with overriding the woocommerce reset password email.

    I’ve moved the file “customer-reset-password.php” into my child theme under the structure:
    Child Theme/woocommerce/email

    but nothing happens, no matter what changes i make. I’ve tried deleting the main content of the email but still when the email is received, its exactly the same as it was originally.

    I’ve also tried to edit the file within the woocommerce plugin folder, but still nothing changed when I made changes. I’m very confused right now.

    Has anyone experienced anything similar to this? Can you please help?

    Thank you,

    Josh

Viewing 6 replies - 1 through 6 (of 6 total)
  • /child-theme/woocommerce/emails/… (plural).

    Sorry lorro, I’ve used “emails” its just i made a spelling error when positing this!

    Some things to check (if you have not already done so!):

    Are you running a cache plugin? If so, delete any cached pages and turn off the plugin until you have finished developing.

    Are you using html emails, these templates are in /emails, or plain text emails, these templates are in emails/plain

    Have you got the latest WooCommerce, 2.6.6?

    Is this the file you’re starting with, before customisation?
    https://github.com/woocommerce/woocommerce/blob/2.6.0/templates/emails/customer-reset-password.php

    Does your parent theme have this template? shouldn’t matter but…

    Please post the url to your site.

    I’m not using a cache plugin, although, I will disable all my plugins (bar woocommerce) and see if anything changes.

    Yes I’m using html emails. I swapped to using the plain emails to see if i was able to custom the plain email within my child theme and it worked. So it seems to be the HTML emails that don’t change when I customise them.

    Yes I’m running Woocommerce 2.6.6.

    That is correct. That is the file I’m starting with before customisation.

    The reason I want to customise this email is that I’ve created a separate login & sign up pages for woocommerce. I wasn’t a fan out the layout that was being used if a logged out user went to the “my-account” so I created a new login page, and a new registration page. These work fine, but I realised I needed to add in a custom “lost password” page too. My custom “lost password” page works as the originally should, it sends an email when you input a username or email. The problem comes when the email specifying the URl that users must go to, to reset their password. Obviously this is related to the “my-account/lost-password” page but I want to create a new “Reset password” page and hence change the email so it sends users to my custom page.

    Right sorted that issue.

    I deactivated the “YITH WooCommerce Email Templates” plugin and was able to customise the email templates.

    Now I just need to figure out how to get the link in the “customer-reset-password.php” email to send users to my custom reset password page!

    There’s a filter to allow you to change a link:
    woocommerce_get_{$page}_page_permalink

    $page is what it should be, and the return value is your custom link.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cannot override the reset password email template’ is closed to new replies.