As far as I know, the default export is .xml and *should* include post meta. I’m not sure how you are generating a .csv file, but you’d have to ensure it includes all post meta or find out how to customize it to specifically include the kia_subtitle meta field.
You could also try a plugin such as WP All Export.
Thread Starter
madlyx
(@madlyx)
Hello!
In Woocommerce version after 5~ there is an option to export the products in a CSV file (I have posted screenshots).
https://postimg.cc/9rJ6BQ41
https://postimg.cc/FYz2CX3v
Even if the “Export custom meta” checkbox is checked, the subtitle is not in the exported file.
-
This reply was modified 4 years, 4 months ago by
madlyx.
Did not realize you were referencing the WooCommerce product import/export.
I suspect (but can’t confirm) it’s not reading the meta field since the subtitle meta key is kia_subtitle and it is NOT prefixed with an underscore…. _kia_subtitle like it probably should have been. But I wrote this ages ago and have learned a lot since then. 🙂
So I think there are 2 approaches that could work here.
1. possibly filter woocommerce_data_store_wp_product_read_meta here: https://github.com/woocommerce/woocommerce/blob/3611d4643791bad87a0d3e6e73e031bb80447417/plugins/woocommerce/includes/data-stores/class-wc-data-store-wp.php#L113
2. map the meta to a custom import/export field. I do this in one of my WooCommerce plugins so it’s possible… a little tricky though.
Unfortunately, you will either need some custom development or will need to try a different importer/exporter to resolve this. I would like to say I will update the plugin to use a _ prefix, but that would involve writing an update routine and I have to prioritize my paying plugins.