我需要任何东西,当创建订单时,除了发送给客户的电子邮件之外,它还会发送一封电子邮件到我的一个电子邮件帐户,其中仅包含客户插入的一些信息,例如:
- 姓名
- 姓
- 街道
- 国家等
我怎么能存档呢?
我需要任何东西,当创建订单时,除了发送给客户的电子邮件之外,它还会发送一封电子邮件到我的一个电子邮件帐户,其中仅包含客户插入的一些信息,例如:
我怎么能存档呢?
Go to yoursite.com/wp-admin/admin.php?page=wc-settings&tab=email§ion=wc_email_new_order
or from the dashboard:
At the bottom of that page there is a button called: "Copy file to theme", click on that and then click on the "View Template" button. Replace the contents of the email from <?php do_action( 'woocommerce_email_header', $email_heading ); ?>
down with:
<h2><?php _e( 'Customer details', 'woocommerce' ); ?></h2>
<?php echo $order->get_formatted_billing_address(); ?>
<?php if ( $order->billing_email ) : ?>
<p><strong><?php _e( 'Email:', 'woocommerce' ); ?></strong> <?php echo $order->billing_email; ?></p>
<?php endif; ?>
<?php if ( $order->billing_phone ) : ?>
<p><strong><?php _e( 'Tel:', 'woocommerce' ); ?></strong> <?php echo $order->billing_phone; ?></p>
<?php endif; ?>
The above removes the order details and keeps the customers details.