• Resolved omarcas

    (@omarcas)


    I wish to edit the email template. I created on my child theme the following directory:

    my_child_theme/woocommerce/emails

    And I copy the files /wp-content/plugins/woocommerce-product-stock-alert/templates/emails on my_child_theme/woocommerce/emails

    • stock_alert_admin_email.php
    • stock_alert_email
    • stock_alert_email_subscriber_confirmation

    I modified the templates, but it dosen′t works. If I edit the original directory templates /wp-content/plugins/woocommerce-product-stock-alert/templates/emails it works, but if the plugin update it will erase. How I can modify email templates on my child theme? Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author MultiVendorX

    (@wcmp)

    Hi, as you are editing email template of our plugin woocommerce-product-stock-alert, hence you need to create this file path to override :

    my_child_theme/woocommerce-product-stock-alert/templates/stock_alert_admin_email.php

    Thread Starter omarcas

    (@omarcas)

    I tried, but it doesn’t work. I tried copying the files to the following directories:

    my_child_theme/woocommerce-product-stock-alert/templates/
    my_child_theme/woocommerce-product-stock-alert/templates/emails
    my_child_theme/woocommerce/woocommerce-product-stock-alert/templates/
    my_child_theme/woocommerce/woocommerce-product-stock-alert/templates/emails

    but it doesn’t work ??

    Plugin Author MultiVendorX

    (@wcmp)

    @omarcas, may I know which email do you want to edit, so we can assist you accordingly.

    Thread Starter omarcas

    (@omarcas)

    I want to edit the following:

    stock_alert_admin_email.php
    stock_alert_email.php
    stock_alert_email_subscriber_confirmation.php

    Plugin Author MultiVendorX

    (@wcmp)

    @omarcas, sorry for the confusion.

    You need to override this via my_child_theme/woocommerce/emails/stock_alert_admin_email.php

    As you can see, it is working fine : https://watch.screencastify.com/v/i5qIwLwTbe1c1tBUwkl9

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Edit mail in child theme’ is closed to new replies.