I want to show a additional column in the backend of WooCommerce (in Orders overview).
The column should contain a custom field, which i have defined (delivery date).
How to do this?
I want to show a additional column in the backend of WooCommerce (in Orders overview).
The column should contain a custom field, which i have defined (delivery date).
How to do this?
You must be logged in to post a comment.
In case someone still needs it – instructions on how to add new columns in Woocommerce orders list. No need in unsetting the default columns, just add this in your functions.php and your code will be valid for updates.
1. Define columns position and names
2. For each custom column, show the values
3. (optional) Function to make the columns sortable
To add new column coupon in woo-commerce order table and get all coupon code according to order. you need to copy and paste in you function.php.
Try this, you will get your solution just write below code on your function.php file.
The following works for WooCommerce 2.6.2.
You should look into two new hooks:
1. Define columns headers
2. Populate values in rows
I came across Woocommerce now. Have added a custom field Personal Registration Number – and now wanted it to be displayed in the Order overview page.
I’ve manage to add the column – but still couldn’t get the value of the custom field for each order.
Here is what I did:
Let me know if it helps you…
I am left to deal with how to get its values for each Order.
As commented: the function definition exists in shop_order.php in WooCommerce plugin.
Let me know if anybody sorts it out.. or knows how to do it.
Thanks,
(sorry, was busy in something so couldn’t read back to check for errors)