Home / Forums / WoodMart support forum / woocommerce email customer details
Home › Forums › WoodMart support forum › woocommerce email customer details
woocommerce email customer details
- This topic has 1 reply, 2 voices, and was last updated 1 year, 6 months ago by
Hung Pham.
-
AuthorPosts
-
January 16, 2025 at 12:43 pm #630203
My WoodMartParticipantI would like to remove this section from all emails. But I don’t want to overwrite the templates. None of the above codes work. Does the theme have any custom solutions?
add_action(‘woocommerce_email_customer_details’, ‘remove_customer_details_section’, 10, 3);
function remove_customer_details_section($order, $sent_to_admin, $plain_text) {
if (did_action(‘woocommerce_email_customer_details’) > 1) {
remove_action(‘woocommerce_email_customer_details’, ‘woocommerce_email_customer_details’, 10);
}
}add_filter(‘woocommerce_email_customer_details_fields’, ‘customize_customer_details’, 10, 3);
function customize_customer_details($fields, $sent_to_admin, $order) {
// Usuń szczegóły klienta tylko w e-mailach do klienta
if (!$sent_to_admin) {
return [];
}
return $fields;
}January 17, 2025 at 11:48 am #630509
Hung PhamParticipantHi kidsdial4,
Thanks for reaching to us.
The Email templates functionality is related to WooCommerce so our theme cannot influent it. Try to find some plugins for customizing such templates.
https://woocommerce.com/posts/how-to-customize-emails-in-woocommerce/
In the meantime, feel free to ask me any questions you may have.
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register