Migrating User Account Downloads
-
BACKGROUND
This may be a very specific migration question.I’m trying to migrate a database of users and their associated downloads into WooCommerce. There are almost ~150,000 users.
The existing database is WordPress, so I have the same WordPress user ID to use. I also used wp_usermeta with a simple key and a SKU as the meta value.
Example in wp_usermeta:
- user_id: 1
- meta_key: “software_license”
- meta_value: “STAR”
I’ve looked over the WooCommerce documentation and it seems like the relationship between downloads and orders is required. I’m hoping not to generate an order per user in order to give them access to their downloads in this migration.
QUESTIONS
- Is scripting an order per user for their downloads the only option? Or can I create one giant order to handle it all so I don’t have fifty thousand rows of orders?
- In the woocommerce_downloadable_product_permissions database table, how is the download_id generated?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Migrating User Account Downloads’ is closed to new replies.