• Resolved diggerdogsausage

    (@diggerdogsausage)


    Hi

    I am looking to customise the woocommerce_email_order_details template to replace the words, product, quantity & cost with words of my own.

    Should I overwrite the original php file once changes have been made or should I save the new file in the themes-woocommerce > emails folder?

    Or is there a way to do this using code snippets to hook code in to the functions.php file? Does any one have advice/experinece/code example of doing this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Grigorij S. a11n

    (@grigaswp)

    Hi there! Thank you for reaching out.

    I understand that you’re looking to replace certain text strings in the default WooCommerce email templates.

    When overriding template files, it’s best to copy them into child theme’s folder:

    https://docs.woocommerce.com/document/template-structure/#section-1

    You may also be able to replace these text strings using Loco Translate:

    https://www.ads-software.com/plugins/loco-translate/

    Translating e.g. from English to English sounds odd, but it works ??

    I hope this helps and let us know if you have other questions.

    Thread Starter diggerdogsausage

    (@diggerdogsausage)

    Hi

    Thank you for the reply. After some experimenting I found I had to replace files in the Kadence woo mail customiser folder (plugin I am using). Not sure what will happen to these files on plugin update but my customisation was simple so I can repeat it easily.

    Seems to work ok. Don’t think I broke anything haha.

    Thank you for the help!

    Plugin Support Grigorij S. a11n

    (@grigaswp)

    Hi there,

    Thank you for the reply. After some experimenting I found I had to replace files in the Kadence woo mail customiser folder (plugin I am using). Not sure what will happen to these files on plugin update but my customisation was simple so I can repeat it easily.

    Indeed, direct changes in plugin files will likely be overwritten during the next update.

    The Loco Translate approach is update proof on the other hand and it should also be possible to change the phrasing in Kadence plugin.

    Thread Starter diggerdogsausage

    (@diggerdogsausage)

    the Loco translate method sounds good. If indeed these changes get overridden I will try that method. Thanks for the advice.

    Plugin Support Grigorij S. a11n

    (@grigaswp)

    Hi @diggerdogsausage,

    Sounds like a plan!

    I’ll be marking this thread as resolved but feel free to open a new thread and link to this one if you have further questions.

    Have a wonderful day ahead!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘customise email templates’ is closed to new replies.