Support » Plugin: Estonian Shipping Methods for WooCommerce » How to show the shipping address in email?

  • I create my own template e-mail, how can I insert the address of the terminal to the letter?
    I write this: <p style="font-family: arial; font-size: 1em; text-align: left; color: #5c5c5c; margin-top: 0px; margin-bottom: 15px; line-height: 1.4em;"><?php printf( __( 'Delivery address:<br><strong>%s</strong>'), $order->get_terminal_name); ?></p>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Risto Niinemets


    Terminals are added to the email via action hook woocommerce_email_customer_details. If your email template has that action called (do_action), then it will be automatically added.

    Thread Starter Danil Gribanov


    Thanks for the support Risto Niinemets!
    But I don’t want to display all the information from do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );. I need only terminal name.
    It is possible to implement it?

    Plugin Author Risto Niinemets


    In that case, unfortunately it is not that easy. You can remove other information via remove_action( 'woocommerce_email_customer_details', 'function_name' ), or do some custom coding and really get into the plugin and see how terminal names are get.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to show the shipping address in email?’ is closed to new replies.