• Resolved steplab

    (@steplab)


    Hi,
    How to edit email template?
    We need to edit phrases and add labels inside email when a payment (bank transfer) is used. Inside settings on bacs_instructions we want to add “.. Order Number #1111” so “Order Number” followed by the Order ID. Is this possible?
    How to send email “New Order” also to another administrator email only when payment bank transfer is used?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there!

    Inside settings on bacs_instructions we want to add “.. Order Number #1111” so “Order Number” followed by the Order ID. Is this possible?

    Sure! You could do this by modifying the email templates, and using a bit of custom code to get that Order Number and the Order ID. Here’s a good place to get started:
    https://www.sellwithwp.com/customizing-woocommerce-order-emails/

    How to send email “New Order” also to another administrator email only when payment bank transfer is used?

    You’d need to modify how the email notifications work and who they’re sent to. I’m not aware of a plugin that can already do this – if you need hands on help building this option, I highly recommend contacting one of the services on our customizations page: https://woocommerce.com/customizations/

    Thread Starter steplab

    (@steplab)

    Thanks

    Inside settings on bacs_instructions we want to add “.. Order Number #1111” so “Order Number” followed by the Order ID. Is this possible?

    I copied file \woocommerce\templates\emails\customer-on-hold-order.php
    inside theme directory inside woocommerce\emails\
    and inside file after “Your order is on-hold until we confirm payment has been received. ….” before do_action ‘woocommerce_email_order_details’
    added:

    
    if( $order->payment_method == 'bacs' ){
    ?>
    <p><?php _e( 'Bank transfer object: <strong>Courses Purchase Order Number ' . $order->get_order_number() .'</strong>.');?></p>
    <?php
    }
    

    So resolved into email template but not yet inside final checkout page.

    How to send email “New Order” also to another administrator email only when payment bank transfer is used?

    2. When is used bank transfer, order status is on hold. So resolved with Woocommerce Booster plugin, inside Booster Settings > EMAILS adding a custom email, and calling this custom email when New order “on hold” status is triggered I can send the email to Administration Office to check the bank transfer.

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    This is turning into a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    • This reply was modified 7 years, 6 months ago by Hannah S.L..

    Hi!
    I would like to do something similar on my site.

    I would like to add the “username” field in the order confirmation email. Do you know how to do it?

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    @massidrink1976 This is actually quite a different question. Can you please create a new thread so that the original question isn’t lost? Thanks!

    Ok, thanks!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Edit Email Templates’ is closed to new replies.