Import download attachment from woocommerce product
I am doing a migration from a wordpress/woocommerce website, I’ve successfully export/import all the data except one thing :
the download attachment file from my woocommerce product
I’m using the wp-cli it’s working fine for the normal media (all my page and blog article have their media files) but all my woocommerce files are uploaded in wp-content/uploads/year/month folder instead of : /wp-content/uploads/woocommerce_uploads/year/month
I’ve looked in the XML the path is correct
Is someone know how wordpress decides in which directory it will put the files during import ?
How can i upload my woocommerce download product in the right directory ?
Edit : export from wp 4.8.6 & wc 3.2.1
import to wp 4.9.5 & wc 3.3.4
Leave an answer