[Woo Commerce] Removal of "[]" & "()" from woo commerce email templates

Hi!
Could you help me remove the square brackets around order number and curved brackets around the date for the email templates?

  • Kris Tomczyk
    • Ex Staff

    Hi Matt

    I hope you are doing good today.

    Solution for this will be to overwrite WooCommerce file called “email-order-details.php“.

    1. Please log in to FTP and copy to PC above file. You can find it in:
    /wp-content/plugins/woocommerce/templates/emails/

    2. Edit this file in notepad and remove “[]” & “()” from there
    [attachments are only viewable by logged-in members]

    3. Upload this file to your theme folder, keeping the path structure.
    Example:
    if your theme folder name is “Matt” then file should be places in:
    /wp-content/themes/matt/woocommerce/templates/emails/email-order-details.php.

    I tested this and it works. Thanks to that in the next WooCommerce update your changes will be not lost.

    Kind Regards,
    Kris

  • Matt
    • Flash Drive

    Hi Kris,

    The solution worked great and I never knew this was possible, Thanks for teaching me something new!

    If it’s not too much trouble, could you take a look at this for me?
    Our product reviews are visible even though they have not been approved, do you happen to have a solution for this?

    Thanks,
    Josh

  • Matt
    • Flash Drive

    Hi Kris

    I’ve granted access.
    As far as I know, the discussion settings are set correctly, and we aren’t currently using any plugins for reviews, the site just uses the default woo-commerce reviews.

    Let me know what you think.

    Thanks :slight_smile:

  • Kris Tomczyk
    • Ex Staff

    Hi Matt

    I made some additional tests on my lab site:
    – I apply the same settings as on your site
    – I user Divi theme to use the same modules on my test product page
    – I don’t use the cache plugins
    – I downgraded my WooCommerce to 3.7.0 (like on your site)
    and I still cannot replicate the same issue.

    If there is no site server cache feature I will recommend full plugin conflict test:

    Please deactivate all plugins except WooCommerce and check if the problem is gone. If so, then enable all plugins one by one and find which one is having conflict. If there is no positive result, switch to default WordPress theme like 2019 and see if it works.

    Before this test I recommend full site backup.

    Kind Regards,
    Kris