Probably the easiest way is to manually construct a new Billing address format by creating a copy of the WooCommerce email address template in /your-theme-driectory/woocommerce/emails/email-addresses.php
by replacing the original echo $order->get_formatted_billing_address();
with for example:
$output="<strong>Customer Name: </strong>".get_post_meta($order->id, '_billing_first_name', true).'<br>';
$output .= '<strong>Customer Last Name: </strong>'.get_post_meta($order->id, '_billing_last_name', true).'<br>';
$output .= '<strong>Company Name: </strong>'.get_post_meta($order->id, '_billing_company', true).'<br>';
$output .= '<strong>Country: </strong>'.WC()->countries->countries[get_post_meta($order->id, '_billing_country', true)].'<br>';
echo $output;
Related Posts:
- How do you access the Product Short Description in a WooCommerce email template? [closed]
- How to change the default registration email ? (plugin and/or non-plugin)
- How can i change email template for new user
- WooCommerce: Change template for single product page
- How can I modify the default reset (lost) password email text?
- Which has more impact on site performance? Template overrides or hooks
- How To Create WooCommerce Custom Template For Specific Product?
- Woocommerce email template customization [closed]
- WooCommerce: The model of e-mail is displaying only the html, not css [closed]
- How to properly Remove certain CSS / JS files from template
- How to customize WooCommerce templates to avoid override upon update [closed]
- Sending email for the custom form in WordPress
- How to add (and change the font of) the short product description to order page and customer’s new order e-mail [closed]
- MailPress plugin: table inline style tag removed when sending the newsletter
- Send default WooCommerce email when switching from custom order status
- Why default template does not show?
- Nested Page Template not showing in page attributes
- (WooCommerce) Conflict with template – Can’t load payment methods
- Template conflict with WC Payment Method
- how to add custom reviews button in woocommerce order complete generated mail
- Why does the blog page not take the page template selected?
- How to add coupon expiry date into the followup emails?
- Get value from an input field and pass into update_meta_data as $meta_value
- Main content not displaying using custom page template
- How to serve a amp template
- Single page applications with WordPress: routes and templates
- plugin overwrites other plugin’s archive-.php file
- Custom Taxonomy Theme file not routing correctly
- Which template(s) to override to use a different sidebar for blog, single posts, categories, blog archive?
- Validating Error with submit button
- Inserting javascript file into theme template?
- Conditional email recipient based off Shipping Method [closed]
- Why would adding a template file to a child theme cause an error in template-loader.php?
- Creating custom post-listing templates in twentyseventeen child theme
- How can I alter a post?
- What is the purpose of the $before and $after arguments on the the_title() function?
- Creating custom URLs with template to fetch external JSON
- Fix for Chart.js removing Admin Bar
- how to insert gravity newsletter subscription form in template
- how to change custom post type search template to output search results in posttype-archive.php
- How can I modify this code to include the parent?
- Woocommerce custom field on emails outputs ‘Array’
- Header and footer fail to load with SSL and custom links
- WordPress with woocommerce custom query
- How can I make is_page_template() workable in child theme?
- How can I display a list of pages and the template used by each?
- Why is this array not working?
- Remove ” Browse Category : ” from Archive title
- Single Post Templates Doubt
- WordPress Child Theme Template auth_redirect wrapper
- Display different list of “Custom Templates” for each Custom Page Type
- How can I add some blocks to template without changing template file?
- Creating page-templates directory breaks everything!
- WooCommerce – Print Processing orders [closed]
- Locating the template behind a WordPress Page
- Editing the tag pages and using templates
- Creating a popup
- When to use content-pagename.php?
- Templates for Mobile Site
- Submit form to another template (ugly url)
- Using external file with WP_USE_THEMES set to false causing 404
- Using file outside of template hierarchy for Twitter sign in authentication
- WordPress not picking up custom templates in sub directory
- Where is search.php?
- Including Custom Template on template_include Filter not working
- Category template not displaying all post formats
- Is it possible to return a specific tag archive/template as one of the search results?
- why get_header doesn’t work twice in a test
- Page Templates Used in Custom Post Type
- Problem displaying replies as part of author’s latest comments on author page
- custom template – override plugin template in child theme – issue with scripts
- List all pages using a specific template on a page
- strange behaviour of template_redirect in IE8
- Show a custom template, no matter the page being viewed, if the user is not logged in
- How do i load a different template for different users screen width
- Is it better practice to create many page templates, or a a few base templates with custom HTML added via TinyMCE?
- Is this the best way to complete disable category archive pages?
- Is it possible to call a template file inside wysiwyg editor? And how?
- Retrieving post ID from current page
- Add pagination to blog
- A page created with url of blog redirects to the posts page, how do I stop this?
- WordPress templates bug
- Current URL path variable
- Mysterious template change after database import/export
- Duplicated Template Does Not Load the Same as the Original Template File?
- Is there a way to share a template/markup with the JSON API so that it doesn’t need to be declared both in PHP and in JS?
- Taxonomy Parent not showing up in address bar
- How to install a wordpress website template on an existing website?
- Styling own template
- WordPress sites translate dynamically generated Homepages
- Custom Archive with Content for Custom Post Type
- Why is my no-results.php template moving my sidebar and footer into the main container?
- Choose to show or not show title on a template?
- Given a page ID, how to display entire page (header/content/footer/sidebars) from a plugin hook
- printf, translation and the_author_posts_link()
- changes to templates not showing on server
- Search results in custom template
- Add multiple pages to theme customizer
- Single Post Template with Dropdown Option?
- Why is this page using the homepage template and not the one it should?