So I'm working on a monster script to port all of our existing stuff from Joomla/Virtuemart to Wordpress/WooCommerce.
So far I've got just about everything done with moving over our product categories and products, I just need to figure out the structure of the _downloadable_files
postmeta.
Using this as an example:
a:1:{s:32:"ded830cf64e3c42c4f7ac5aecd7c5c86";a:2:{s:4:"name";s:0:"";s:4:"file";s:114:"http://localhost/wp-content/uploads/woocommerce_uploads/2014/09/test-file.pdf";}}
How is the s:114
just before the file url generated? That is the only part that changes that I don't know how to generate.
Any suggestions would be greatly appreciated!