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
- Woocommerce get selected shipping zone id for the current user
- How to show order data by multiple ID?
- Problem with Woocommerce REST API Authentication
- Categories Template Assistance
- How to change / delete product short description in Woocommerce
- How do I add HTML to a PHP function [closed]
- How to trash multiple post/product programmatically
- OrderItem get_total() returns lower value than $order_item->get_product()->get_price() * quantity
- WP_Query loop, does not display special characters in title correctly
- Remove query string specific key value
- WooCommerce – Reset quantity input field when variation changes
- Custom Text in WooCommerce Order Processing Email Based on Products
- Converting HTML Template to WordPress Theme
- Displaying Woocommerce Product Category in WordPress
- Woocommerce : Can’t get product info in loop
- inserting a post from an extern php file but post content doesn’t show on wp site
- Prevent redirect to wp-login.php
- Only show size attributes in product box woocommerce when available
- Woocommerce Product_cat for current category page
- Find out last 7 days of upload images, last week uploaded image from Gallery and display them in different pages
- How do i wrap woocomerce attribute in list?
- WooCommerce “Checkout Now” button [closed]
- Wrap title and excerpt in a div (latest posts block)
- Woocommerce append shipping method form
- Loading Elementor templates in a Bootstrap modal on button clicking
- wp_query – Exclude the first thumbnail from lazy loading on archives
- Hide specific shipping methode depending on day and time of day
- Adding custom field to product category and show it to shop/category shop page
- How to hide a div section when user is logged in, in single product woocommerce
- Usermeta data unserialize, extract and display in table in WordPress
- Global variable doesnt’t pass to another function
- Exclude category from woocommerce product category list
- How to empty price of simple and variable product when product changed into out off stock
- How to auto-generate random numbers in username?
- Remove generated category and tag class names from woocommerce product & blog listings markup
- wordpress query returning unexpected results
- How can I display a query in a page?
- Add post class in custom loop (WP_QUERY)
- List of child pages fetch next results at link click
- reorder a WP_Query, using a dropdown
- Custom query_posts() parameter
- How to modify this function to exclude also the post belonging to a specific category?
- Show button in header when product custom field is not empty
- WordPress 6.1.1 UTF8 Slug Limit Increase
- Woocommerce Convert existing order to the cart
- How to change shipping method title based on cart amount?
- How to add SKU and remove product title from WooCommerce url?
- Product Search in search.php
- using custom pages for myaccount in woocommerce
- How to create different templates for woocommerce single-product.php?