10
submitted 1 year ago by [email protected] to c/[email protected]

loving wp db import and many of the functions. yet i am mindblown to not finde ...or too dumb... to export and import customers and orders. their github https://github.com/woocommerce/woocommerce/wiki/WC-CLI-Overview#examples has a lot of empty space

What is WP-CLI? WooCommerce Commands Examples

Command: Response: Command: Response: Command: Response: Command: Response: Command: Response: Command:

🤷

anyways thats useless.

i could

wp wc shop_order list --user=URNAMEHERE --after="2023-08-17T23:59:59" --format=csv > my_cool_orders.csv

or maybe sth like

wp export --post__in=$(wp eval 'foreach( get_posts(array("post_type" => "shop_order", "posts_per_page" => -1, "fields" => "ids")) as $id ) { echo $id. ","; }') --max_file_size=200

but how to import? is there any standard way on CLI to export and import orders and users? (I am not interested in any plugin suggestions)

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here
this post was submitted on 17 Aug 2023
10 points (100.0% liked)

WordPress

577 readers
1 users here now

A place to talk about WordPress the open source content management system. Also a place to ask for help with WordPress. Don't be rude, don't spam.

founded 1 year ago
MODERATORS