• Resolved WebBuddy

    (@websprout)


    Hi,

    I suspect that my woocommerce files have been edited. May I know which file contains the code for sending out new order notification emails? Thank you in advanced.

    KC

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey @websprout all emails are a located in woocommerce > templates > emails

    Make sure you check your theme first to see if those files have been copied to it. If you want to customize then you’ll need to copy them to your theme.

    Hope that helps.

    Thread Starter WebBuddy

    (@websprout)

    Hi,

    I realised that in my directory – /themes/dt-the7/woocommerce/emails/admin-new-order.php

    There is an additional codes:

    $branch = get_post_meta( $order->id, ‘Checkout Branch’, true );
    if($branch){
    $title = get_the_title( $branch );
    echo ‘<p>‘.__(‘Checkout Branch’).’: ‘ . $title . ‘</p>’;
    }

    Is this the reason why my new order notification emails are not sending?

    KC

    Sorry, I don’t know that theme. Maybe revert over to Twenty Sixteen them and test.

    Thread Starter WebBuddy

    (@websprout)

    Hi @stefsternyc,

    What if I delete that file (/themes/dt-the7/woocommerce/emails/admin-new-order.php) then test a transaction? If the email works then it would mean that the block of codes is the cause, am I right?

    If you delete that file it will default to the WC file. Always download a copy of that file though as your theme may rely on it because it has been customized.

    You can test by just renaming that file with a -bk after the .php extension .php-bk

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Which file to check for woocommerce sending new order notification’ is closed to new replies.