Here’s the solution:
- Remove the SKU table header
- Add
(SKU)
to the Product headerProduct (SKU)
- pass
false, true
inemail_order_items_table
function$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
- separating column the variations from the add to cart button woocommerce
- How to change / delete product short description in Woocommerce
- How do I add HTML to a PHP function [closed]
- Placing the_content inside shortcode not working
- Link to file in plugin directory from wordpress template?
- Custom image upload
- How to display recent posts on home page with custom HTML
- Password protecting content in custom template
- WordPress automatically adds tags when pasting code, how to stop it?
- Add HTML Attributes To Anchor Tags In `wp_list_categories()` Function
- How to trash multiple post/product programmatically
- Writing scripts using WordPress / WooCommerce classes?
- How to override wp-admin styling
- Sorting Posts | Alphabetical Order
- My Own layout in WooCommerce pages [closed]
- Get taxonomy terms only of the WP_Query current posts
- How to get woocommerce cart content without an action?
- WooCommerce: Add Payment Gateway Field to Webhooks [closed]
- Placing raw HTML inside a WordPress shortcode
- How to only show page id as body class?
- Woocommerce – remove product from category
- How to get to a specific position in wp_query?
- Get category name from custom loop and echo it once
- Add a Second Menu to a theme that only support 1 menu
- Custom excerpt function re-factoring
- Looking for most performant way to execute several similar WP queries within shortcodes
- API response to be stored locally
- How to make custom total price reactive in navigation
- OrderItem get_total() returns lower value than $order_item->get_product()->get_price() * quantity
- Slide in Panel WordPress Post
- Change description on specific WooCommerce product status change
- Add the Name of Products Ordered to Admin New Order Email WooCommerce
- Changing Woocommerce flat rate every nth number of items
- Shortcode content output but not in correct place
- Use wp_get_recent_posts with search term
- How to prevent those PHP variables from being cached on WordPress?
- WP_Query loop, does not display special characters in title correctly
- How to display user nickname (not display name) in PHP template?
- Custom Template 404 for specific custom post type
- Remove query string specific key value
- Woocommerce product download URL
- Correct syntax to html php conversion
- How to select WooCommerce products by post_meta and order them
- Setting All Drafts to ‘exclude-from-catalog’ in WooCommerce
- Woocommerce – Filter Variable Products by Variation Attributes and Variations Regular Price
- Hide post if matches current month and year
- woocommerce – hide payment method in new order email
- Upload Image in a WordPress page using PHP