woo_files not updating / showing in back end
Author | Posts |
---|---|
February 28, 2014 at 7:53 pm 15950 | |
David | 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. Thank you. |
March 11, 2014 at 10:27 am 16408 | |
David | I’m having the same issue as well… the file uploads and shows under the WPUF Custom Fields but not showing in the Woo Commerce downloadable files field. Any ideas? |
March 11, 2014 at 12:13 pm 16412 | |
Tareq Hasan | Sorry I didn’t reply. Woo changed it’s meta key for downloadable urls. Now it’s |
March 11, 2014 at 8:55 pm 16448 | |
David | 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? |
March 11, 2014 at 10:22 pm 16457 | |
David | Found the fix! 1. As Tareq mentioned, the new Meta Field Name is 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.
And if you’re curious, we’re using WPUF on our soon releasing http://slowroasted.co |
March 11, 2014 at 11:07 pm 16460 | |
Tareq Hasan | Ok, great! I see you are creating a marketplace, have you seen our version marketplace based on WooCommerce? 🙂 |
March 15, 2014 at 2:04 am 16634 | |
acav802 | Thanks I am going to try this! |
March 15, 2014 at 4:28 am 16638 | |
acav802 | David thanks for your help on this I was a little confused about creating a field for the $fileName variable. Should it be a hidden field? If I don’t create a field, should i just use:
Thanks! |
March 15, 2014 at 5:04 am 16639 | |
David | acav, That’s right! The value isn’t required so you could set it to null or something else useful to you! Let me know if it works or if I can be of further help. |