I’m using the woo_files meta for my users to be able to upload digital download products. I noticed that it has not been showing up in the back end recently.
DId they maybe change this value in 2.1 WooCommerce? Anybody else notice this?
My field in WPUF Custom fields does show in back end, but it should also be showing in “Downloadable Files:” under WooCommerce Product Data.
Tareq, I still think what you have in the docs is incorrect though. Because after inspecting the DB for the array storage, since 2.1 I think the array storing the files is structured different from what you have in the docs? Any insight?
Found the fix!
Essentially the issue is WooCommerce 2.1+ updated the field storing Downloadable Files. My guess is so that more than one file can be supported per product.
1. As Tareq mentioned, the new Meta Field Name is _downlodable_files
2. The storage method is also slightly updated to use a multi-dimensional array. The following code will work, however you will need to update “File Name” to be a field or some valid variable storing the file name for the particular row. Or if you don’t care about it, just leave it null.