0

我需要任何东西,当创建订单时,除了发送给客户的电子邮件之外,它还会发送一封电子邮件到我的一个电子邮件帐户,其中仅包含客户插入的一些信息,例如:

  • 姓名
  • 街道
  • 国家等

我怎么能存档呢?

4

1 回答 1

0

Go to yoursite.com/wp-admin/admin.php?page=wc-settings&tab=email&section=wc_email_new_order or from the dashboard:

  • Go to the WooCommerce sections and in that go to the Settings
  • In settings click on the Email tab and in that click on the New Order tab.

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.

于 2014-08-09T20:29:57.157 回答