• Resolved morten008

    (@morten008)


    Hi,

    I have searched the forum for a solution regarding this issue, but no luck.

    The issue is that the customers e-mail and phone is not included in the admin “new order” e-mail after the customer have completed an order on my website.

    Normally on my other webshops I have the customers email and phone included under billing adress in my “new order” email.

    Both WordPress and WooCommerce is fully updated.

    Any suggestions on how to solve this?

    I found my admin-new-order.php file which looks like this:

    ——–

    <?php
    /**
    * Admin new order email
    *
    * This template can be overridden by copying it to yourtheme/woocommerce/emails/admin-new-order.php.
    *
    *
    * @see https://docs.woocommerce.com/document/template-structure/
    * @author WooThemes
    * @package WooCommerce/Templates/Emails/HTML
    * @version 2.5.0
    */

    if ( ! defined( ‘ABSPATH’ ) ) {
    exit;
    }

    /**
    * @hooked WC_Emails::email_header() Output the email header
    */
    do_action( ‘woocommerce_email_header’, $email_heading, $email );

    /**
    * WETC Mod
    */
    $WCOption = get_option( ‘woocommerce_new_order_settings’ );
    $emailText = ‘You have received an order from {customer_name}. The order is as follows:’;

    if ( $WCOption && $WCOption[’email_text’] ) {
    $emailText = $WCOption[’email_text’];
    }

    $emailText = str_replace( ‘{customer_name}’, $order->get_formatted_billing_full_name(), $emailText );

    ?>

    <p><?php _e( $emailText, ‘woocommerce’ ); ?></p>

    <?php

    /**
    * @hooked WC_Emails::order_details() Shows the order details table.
    * @hooked WC_Emails::order_schema_markup() Adds Schema.org markup.
    * @since 2.5.0
    */
    do_action( ‘woocommerce_email_order_details’, $order, $sent_to_admin, $plain_text, $email );

    /**
    * @hooked WC_Emails::order_meta() Shows order meta data.
    */
    do_action( ‘woocommerce_email_order_meta’, $order, $sent_to_admin, $plain_text, $email );

    /**
    * @hooked WC_Emails::customer_details() Shows customer details
    * @hooked WC_Emails::email_address() Shows email address
    */
    do_action( ‘woocommerce_email_customer_details’, $order, $sent_to_admin, $plain_text, $email );

    /**
    * @hooked WC_Emails::email_footer() Output the email footer
    */
    do_action( ‘woocommerce_email_footer’, $email );

    ——–

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Customer and E-mail and phone not included in admin order e-mail’ is closed to new replies.