Here’s the solution:
- Remove the SKU table header
- Add
(SKU)to the Product headerProduct (SKU) - pass
false, trueinemail_order_items_tablefunction$order->email_order_items_table(false, true)
This is not the visual result you were expecting, but it works and it shows the SKU. The second parameter in email_order_items_table indicates whether to show the SKU or not.
Related Posts:
- Why do templates contain so many PHP tag pairs?
- What exactly does “Posts page” do in WordPress?
- retrieve thumbnail from post ID of best selling product in category
- How to have a custom display for both woocommerce archive and product-category pages? [closed]
- WP_Query | Help me create a search term with an ‘OR’ relation?
- Using Cookie Data For WP_Query Loop
- Blank on static home page?
- Display related products with custom output
- Blank space at beginning of tag?
- Inject PHP code into “sidebar-content” – code before my WooCommerce sidebar widget?
- An unwanted inline style is added to my body tag
- How to properly insert a link to a template in WordPress?
- How can I use wp_query to show all product data using just the products ID?
- Get and insert order email address to the PHP template inside HTML text
- Display a specific category of products in shop page and disable code for specific actions
- How do I remove the product thumbnail link from a specific div in Woocommerce? [closed]
- How to get all author posts outside of author templates
- Create a Blog Template Page
- Is there a way to hook or call a custom woocomerce template that is not part of the default templates of woocommerce?
- Function returns text instead of html [closed]
- How to retrieve the data from the sever and displaying it in a page?
- How to remove coupon dropdown feature
- Add html link in functions.php files of the theme
- How to rename woocommerce-billing-fields
- How to display SQL query that ran in WC_Order_Query?
- WP_Query multiple post results
- WordPress WP_Query without query GET parameters
- Creating custom page template from existing PHP site
- Search AJAX Filters – Multiple Query Loops Into One Loop (Optimization)
- Output product category link from WP_Query
- How to work Woocommerce pagination inside shortcode?
- WP_Query for woocommerce products with a pattern as a post_title
- PHP function for horizontal Woocommerce thumbnails and badges
- What are the advantages/disadvantages of ways to use php template files?
- Remove span tags from WooCommerce Downloads page
- Use Search Term in html link and redirect
- Custom woocommerce payment gateway – Form
- get_filtered_term_product_counts – Get product terms if any products
- sessionStorage saves input value in browser but it is not loaded in the form field
- Change WooCommerce template for PDF – access to custom field
- WP_Query To Display Product Of Brand On Taxonomy Page
- Woocommerce custom attributes list help
- WooCommerce multiple custom fields code
- How to display last whole post on the homepage
- Woocommerce Related Product by 2 taxonomy
- wp_query beginner
- How to add thumbnails from recent posts to owl-carousel in wordpress automatically?
- Can’t make product images clickable
- Ajax Load More or View More functionality for woocommerce category layout by template overriding
- How to create a container in php then customise it in CSS
- How to show correct td of table tags in wp_query loop
- Endpoint exists and shows up in My Account dashboard. Need to add endpoint to My Account DROPDOWN menu in Porto theme
- echo something inside a shortcode
- How i can get post data from database when i am getting post id from url in wordpress
- require_once() if a product in woocommerce contains a tag [closed]
- How to disable delivery on certain date at checkout page in WooCommerce?
- Store metakey value as an array
- How do I change this function from two returns to one string to show sku and dimensions in WooCommerce cart?
- Where can I find the inline-css of my theme header?
- Call WC_Product get_price()?
- How to suppress template-parts in undescores?
- Website completely messes up when logging out
- Conditional string comparison failing for basename/slug
- Calling PHP Titles inside Javascript Markup
- How can I use custom menus with a Bootstrap WordPress theme?
- How to add new CSS file to new PHP file
- WordPress SQL JOIN query
- WP_Query and help with the loop for magazine front page
- How to WP_Query posts order by parent title?
- search.php to search only the post title
- Convert a column of a table containing an Array as response in HTML
- HTML Form Question
- Billing detail page doesn’t work after I’ve changed the order of the Woocommerce navigation
- Change the URL of an image from wp_get_attachment_image_src for Product Posts based on Category
- Combine change Email WordPress and woocommerce emails template
- Woocommerce Product page add on checkbox and price
- How to set Nav as a default menu in wordpress
- Use WPQuery to match to specific repeater row in post
- WP_QUERY post_in problem
- how to get data from two different table from wordpress database
- Woocommerce – get daily sales meta
- Discount in the specific product title using keyword ( Woocoommerce )
- WordPress search query, how to modify the sql
- Make a full-width wordpress page
- Ordering / grouping posts by datepicker ACF
- Include search tags and users in my search results system
- Sort WooCommerce data with WP-CRON?
- Add custom taxonomy to custom search for posts
- Display specific main Sub Nav on Woocommerce product pages
- Only Get A Certain Number of Posts From WP_Query
- Does wp_query and query_posts affect website performance? [duplicate]
- Implement “No related posts for this entry” into the loop?
- wc_add_notice not working on cart page
- ACF | WooCommerce | Theme Development | How to include a /template-part/ that makes use of ACF’s on a custom WooCommerce homepage?
- Woocommerce – Shipping tax class based on cart items not using the highest tax available
- ACF repeater image in video poster with jquery
- Twig+WordPress how to use array arguments inside a function?
- Advanced Custom Fields Show PHP in Text Areas
- How to use a conditional statement in a post loop but not count towards the “posts_per_page” if false
- Add up all numbers from a WordPress query [closed]