admin管理员组文章数量:1130349
I'm new to WooCommerce and I have had a request to make a minor change to the new order email which I have managed to find the template, but I am not sure which line I should change.
At the moment the new order email has:
You have received an order from (billing address first name)
But I want to change it to:
You have received an order from (username which made the order)
Is this possible? Would this just change the variable the email is using?
Thanks in advance.
I'm new to WooCommerce and I have had a request to make a minor change to the new order email which I have managed to find the template, but I am not sure which line I should change.
At the moment the new order email has:
You have received an order from (billing address first name)
But I want to change it to:
You have received an order from (username which made the order)
Is this possible? Would this just change the variable the email is using?
Thanks in advance.
Share Improve this question edited Jan 7, 2018 at 1:05 Ciprian 8792 gold badges11 silver badges27 bronze badges asked Jan 6, 2018 at 11:21 WoohelpWoohelp 311 silver badge3 bronze badges2 Answers
Reset to default 2I have found the line I need to edit I think
<p><?php printf( __( 'You have received an order from %s. The order is as follows:', 'woocommerce' ), $order->get_formatted_billing_full_name() ); ?></p>
would that change to
<p><?php printf( __( 'You have received an order from %s. The order is as follows:', 'woocommerce' ), $order->get_user() ); ?></p>
Yes, it's possible.
Copy the email folder from the plugin directory to a woocommerce folder in your child-theme.
/wp-content/plugins/woocommerce/template/emails/admin-new-order.php
gets copied to
/wp-content/themes/your-theme/woocommerce/emails/admin-new-order.php
Then you can change the email template to suit your needs.
I'm new to WooCommerce and I have had a request to make a minor change to the new order email which I have managed to find the template, but I am not sure which line I should change.
At the moment the new order email has:
You have received an order from (billing address first name)
But I want to change it to:
You have received an order from (username which made the order)
Is this possible? Would this just change the variable the email is using?
Thanks in advance.
I'm new to WooCommerce and I have had a request to make a minor change to the new order email which I have managed to find the template, but I am not sure which line I should change.
At the moment the new order email has:
You have received an order from (billing address first name)
But I want to change it to:
You have received an order from (username which made the order)
Is this possible? Would this just change the variable the email is using?
Thanks in advance.
Share Improve this question edited Jan 7, 2018 at 1:05 Ciprian 8792 gold badges11 silver badges27 bronze badges asked Jan 6, 2018 at 11:21 WoohelpWoohelp 311 silver badge3 bronze badges2 Answers
Reset to default 2I have found the line I need to edit I think
<p><?php printf( __( 'You have received an order from %s. The order is as follows:', 'woocommerce' ), $order->get_formatted_billing_full_name() ); ?></p>
would that change to
<p><?php printf( __( 'You have received an order from %s. The order is as follows:', 'woocommerce' ), $order->get_user() ); ?></p>
Yes, it's possible.
Copy the email folder from the plugin directory to a woocommerce folder in your child-theme.
/wp-content/plugins/woocommerce/template/emails/admin-new-order.php
gets copied to
/wp-content/themes/your-theme/woocommerce/emails/admin-new-order.php
Then you can change the email template to suit your needs.
本文标签: How to Change WooCommerce new order email
版权声明:本文标题:How to Change WooCommerce new order email? 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749078955a2312747.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论