• Resolved pardeepsingh

    (@pardeepsingh)


    hi there .

    the plugin is working fine .. but the problem i am facing right now that
    customer is getting order instruncion on completed order email.
    we dont want that to do same . the instruction mean to be send only on new order means on processing order and that is working fine . but why that order instruction is coming on completed order ..please let me know the solution

    thanks
    pardeep singh

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

    (@massoudshakeri)

    Hi,
    In Woocommerce->Settings->Emails, there is a template for “Completed Orders”.
    If you check that template, there should be a line like this that should be commented:
    /* do_action( ‘woocommerce_email_order_details’, $order, $sent_to_admin, $plain_text, $email ); */
    I don’t think this line is part of the original template, unless you modify it yourself.
    if you really need that line, you can check if the payment method is “email tranfer”:
    if (’emt’ !== $order->payment_method)
    do_action( ‘woocommerce_email_order_details’, $order, $sent_to_admin, $plain_text, $email );

    Thread Starter pardeepsingh

    (@pardeepsingh)

    thanks . its worked ..

    Plugin Author Massoud Shakeri

    (@massoudshakeri)

    Hi pardeep,
    I fixed that problem in the new version. So you should not need to change any email template.
    Let me know if this works for you.

    Thread Starter pardeepsingh

    (@pardeepsingh)

    thanks .. let me forward that to client

    jonathanappleseed

    (@jonathanappleseed)

    I’m having this same issue. The payment data is showing up again in the email when I select “Processing Order,” after the payment is already made, and again when I select “Completed Order” after the payment is shipped. The code you provided removes all the order information, including the table that describes the order contents and cost. I don’t want to remove that stuff, just the email money transfer. That should only appear on the initial message when the order is “On Hold.”

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘order instruction on completed order email’ is closed to new replies.