The code below can be used for including additional custom metadata before the line item columns in the CSV file using Order / Coupon / Subscription Import Export Plugin for WooCommerce. All you need to is add the code in the function.php file of the active child theme and the change the parameters ‘RDI’ and ‘LDI’ with the custom field names that you need to export.
- Was this article helpful?
- Yes, thanks!Not really
January 3, 2022
I have added Advanced Custom Fields plugin and added product attribute “hsn_codes”. I tried to use the above code to get this data but unable to get it, could you please help me writing the code for this, as i have very less technical knowledge in php.
January 6, 2022
Are you required to export the custom metadata of the orders to the export CSV? If yes, then please enable the Hidden metadata option on the export screen and try exporting.