I finally tried using var_dump()
on $item
and $_product
, which are both used in the email-order-items.php
template. $_product
revealed a post
object, which itself has a post_excerpt
property, which looks like it holds the contents of the “Product Short Description” from the WooCommerce product form.
So, to add the description beneath the item name, I added this to my code:
echo '<br/>' . $_product->post->post_excerpt;
Voilà! The short description appears in the email!
Hope this helps someone else! Took me a couple hours of frustration to get it.
Related Posts:
- Output fields manually in Woocommerce email templates
- 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
- How to use Class
in Java? - Get name of the current template file
- How do you find out which template page is serving the current page?
- How do I get the size of an attachment file?
- Is there any way to use get_template_part() with folders?
- Adding Page Attributes Metabox and Page Templates to the Posts Edit Page?
- Any advantage to using get_header() over include(‘header.php’)?
- Enable page templates. How?
- Is it possible to override the result of get_template_part()?
- Use [embed] filter in template files
- What’s the purpose of the paged.php file?
- Prevent comments_template() to load comments.php
- Is there a way to list all used/unused WP templates?
- Page editor missing Templates drop down
- Print WordPress template filename(s) for debugging
- How to force TinyMCE in WordPress to replace newlines with tags and not with
- How to find the posts page (home page) programatically
- View WordPress page template usage (or unused)
- How to edit contents of dynamic_sidebar()?
- How to check if a shortcode exists?
- Where is get_header(‘shop’) file in Woocommerce templates
- Custom templates folder
- What is the link to my default “archive” page?
- How to get slug of current category in taxonomy template?
- How to show a under construction page for a domain but still be able to work on index.php?
- Change the name of the ‘Default Template’
- Customizing get_the_excerpt() to specific length and “Read More” output.
- How to Rename a Template File?
- get page templates
- Echoing Elementor page content in template, but it doesn’t get styles and some widgets are missing
- Using WordPress templating for HTML emails
- Loading partial templates with AJAX/PJAX
- single-product.php template not working for single products [closed]
- WP frontend output of custom textarea fields not respecting line breaks. In admin it’s OK
- How do you check if a WordPress template file exist?
- Load entire NextGEN gallery from single thumbnail?
- I put my blog on a subpage, how do I get page title?
- A special single page templates for posts under a category and all its child category
- WooCommerce – Load Templates From Plugin For All Template Files
- Custom reset password template after forgot password request
- Outputting Canonical Resource URLs Across a Multisite Network?
- Gravity Forms Custom Templates [closed]
- Child Theme: how to override variables?
- How do I get the URL of a specific size featured image?
- Where to store some per-template preferences?
- add/apend templates ‘transparently’ via plugin to currently active theme or child theme?
- stop blog page from using index.php?
- How to create tag.php
- Template files missing after moving site
- How do I override template-tags.php in twentyseventeen theme
- Get template part vs locate template function
- Programmatically change post templates?
- How to hide/redirect the author page
- Tools for Converting an Existing Website Design to a WordPress Template?
- Gutenberg & Pre-formatted Templates: Core Block Attributes
- Restrict a search to a custom post type
- How to have a custom display for both woocommerce archive and product-category pages? [closed]
- Gutenberg Editor – Template Doesn’t Match Error
- author.php added to template not working on Nginx server
- Test if page is child and has children, if so echo child pages also on grandchild pages
- Need to give custom page template for each language in WPML
- roots child theme can’t override header.php
- How did you incorporate WooCommerce in your own WordPress theme?
- Correct process for a new Page Template?
- Templates & CSS – Proper Programming Practice?
- How to assign a class to a page with a custom template?
- wordpress – load a template based on the URI
- When calling wp_title(), do you have to create some kind of “title.php” file?
- A shared custom taxonomy between two custom post types
- Creating a custom category page with pagination
- Create Page that uses specific template
- TwentyTen: Overloading template.php files vs. get_template_part
- Post formats template
- Sharing templates with the JSON API?
- How to include template according to meta post value
- New Template — copy existing template and change code? [duplicate]
- index.php template is used instead of blog page
- How do I add a text input field for customers to leave a note on a single WooCommerce product page?
- Using Includes in Templates in Document Head
- Proper Javascript Implementation
- How to show scaled featured image in template?
- Stream Video Player does not work with do_shortcode()?
- Same template for all the terms of a taxonomy
- Guest author’s post not display in author template
- Modifying searchform.php and search.php to have two kinds of searches
- Prevent private post 404