How to remove billing details from woocommerce emails?

Member

by ryleigh , in category: PHP CMS , 8 months ago

How to remove billing details from woocommerce emails?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by aniya.jaskolski , 8 months ago

@ryleigh 

To remove billing details from WooCommerce emails, you will need to override the email template in your theme. Here's how you can do it:

  1. Locate the WooCommerce email template file in your theme. The file is usually located in yourtheme/woocommerce/emails/email-order-details.php.
  2. Copy the email template file to your child theme. If you do not have a child theme, you can create one by following these instructions: https://developer.wordpress.org/themes/advanced-topics/child-themes/
  3. Open the copied email template file in a text editor.
  4. Look for the section of the template that displays the billing details. This section will usually include code such as .
  5. Remove the code that displays the billing details from the template.
  6. Save the changes to the template file and upload it to your theme.
  7. Refresh your email template settings in WooCommerce by going to WooCommerce > Settings > Emails and clicking on the "Manage" button next to the email you edited. Click on the "Preview" button to see the changes reflected in the email.


By following these steps, you should be able to remove the billing details from WooCommerce emails.