Is it possible to add a column "delivery time" to the Woocommerce admin product list?
I know there are some additional columns (thumb, price, product_cat etc) to choose at "Screen Options" but "delivery time" is not available.
Is it possible somehow to add it to the list?
EDIT:
I tried to follow LoicTheAztecs answer, but I'm having problems to find the correct meta_key slug.
If i search for "delivery" in wp_postmeta I'm getting 0 results.
But there are products with delivery time assigned. On my product page there's a text field "Lieferzeit: 1–2 Wochen" (means Delivery time: 1–2 weeks). If I search the whole database for "Wochen" I'm getting 2 hits in wp_options und 6 hits in wp_terms.
DB general search:
Hits in wp_terms
DB:
Do you know how to find the correct meta_key slug from here?
Here is the way to do it with that 2 custom functions hooked. The first one create the column with the title, the second one populate the column with the products data. But you will need to set in that second function, the correct corresponding
meta_key
to get the data.Here is that code:
Code goes in function.php file of your active child theme (or theme) or also in any plugin file.
Tested and works.
To find the correct
meta_key
slug corresponding to the "delivery time", you should need to make search in your database using PhpMyAdmin. You will have to search fordelivery
term inwp_postmeta
table this way:Then you will get this kind of results (here there is just 1 line with a fake slug):
So now you should be able to get the correct slug name (like this fake "_delivery_date" one) …
Related answer (for orders): Add custom columns to admin orders list in WooCommerce backend