Moving a store from WooCommerce to Shopify sounds like one job. In practice it's three: products, customers and orders, and each one moves differently. Products are the easy part. Customers come across with some gaps you need to plan for. Orders are where most people get stuck, because the tool they used for the first two doesn't handle them.

This post covers what transfers, what doesn't, and a short Python script that turns a WooCommerce customer export into a file Shopify's customer import accepts.

What transfers and what doesn't?

Transfers cleanly: names, email addresses, a default address, phone numbers (if they're in a format Shopify accepts), company names, and anything you choose to carry over as tags or notes.

Doesn't transfer: passwords. WordPress stores password hashes, not passwords, and Shopify can't use those hashes. Every imported customer has to set up access again. With Shopify's classic customer accounts you send account invites so they can set a new password. With the newer customer accounts there are no passwords at all; customers sign in with a one-time code sent to their email, so the "reset your password" problem goes away. Either way, tell customers before launch so the change doesn't look like a security problem.

Needs a different tool: historical orders. The CSV import in the Shopify admin covers products and customers. It doesn't import past orders. For those you need an app, such as Shopify's Store Migration app or Matrixify, or a script against the Shopify Admin API. Keep the old WooCommerce order number somewhere on each imported order (in the order name, a tag or a note) so your support team can find an order when a customer quotes the old number.

Depends on third parties: subscriptions and saved cards. Saved payment tokens belong to your payment gateway, not to WooCommerce, and recurring billing belongs to your subscription plugin. Whether active subscriptions can carry on without customers re-entering card details depends on the gateway and the Shopify subscription app you pick. Ask both before you set a launch date.

Easy to miss: guest customers. People who checked out as guests in WooCommerce don't have user accounts, so a user-based export leaves them out. Their details only exist on their orders. Decide whether you want them as Shopify customers, and only mark them as subscribed if you have a record of consent.

The customer export

WooCommerce stores billing details as user meta with keys like billing_first_name, billing_city and billing_country. Most export plugins can output these as columns. This sample uses those names plus a marketing_opt_in column from a newsletter plugin. Adjust the names in the script to match your own export.

customer_id,user_email,billing_first_name,billing_last_name,billing_company,billing_address_1,billing_address_2,billing_city,billing_state,billing_postcode,billing_country,billing_phone,marketing_opt_in 101,Jane.Doe@Example.com,Jane,Doe,,12 High Street,Flat 3,Leeds,,LS1 4AB,GB,+447700900123,yes 102,tom@example.ca,Tom,Martin,Maple Supplies Ltd,400 King St W,,Toronto,ON,M5V 1K4,CA,416 555 0142, 103,priya@example.com.au,Priya,Shah,,8 George St,,Sydney,NSW,2000,AU,+61 2 5550 1234,1 104,jane.doe@example.com,Jane,Doe,,12 High Street,Flat 3,Leeds,,LS1 4AB,GB,+447700900123,yes 105,,Guest,NoEmail,,1 Main St,,Austin,TX,78701,US,, 

Row 104 is a duplicate of 101 with different capitalisation, and row 105 has no email. Both are common in real exports.

The conversion script

Standard library only. It writes Shopify's customer import columns, lowercases and de-duplicates emails, and tags every row woo-import.

import csv, re, sys SHOPIFY_COLUMNS = [ "First Name", "Last Name", "Email", "Accepts Email Marketing", "Default Address Company", "Default Address Address1", "Default Address Address2", "Default Address City", "Default Address Province Code", "Default Address Country Code", "Default Address Zip", "Phone", "Accepts SMS Marketing", "Tags", "Note", "Tax Exempt", ] OPT_IN_VALUES = {"yes", "y", "1", "true", "subscribed"} def convert(src, dst, tag="woo-import"): seen, written, skipped = set(), 0, [] with open(src, newline="", encoding="utf-8-sig") as f_in, \ open(dst, "w", newline="", encoding="utf-8") as f_out: out = csv.DictWriter(f_out, fieldnames=SHOPIFY_COLUMNS) out.writeheader() for row in csv.DictReader(f_in): email = row.get("user_email", "").strip().lower() if not email or email in seen: skipped.append(row.get("customer_id") or "?") continue seen.add(email) phone = re.sub(r"[^\d+]", "", row.get("billing_phone", "")) note = f"WooCommerce customer ID {row.get('customer_id', '')}" if phone and not phone.startswith("+"): note += f"; phone on file: {row['billing_phone'].strip()}" phone = "" # not in international format, keep it out of Phone opted_in = row.get("marketing_opt_in", "").strip().lower() in OPT_IN_VALUES out.writerow({ "First Name": row.get("billing_first_name", "").strip(), "Last Name": row.get("billing_last_name", "").strip(), "Email": email, "Accepts Email Marketing": "yes" if opted_in else "no", "Default Address Company": row.get("billing_company", "").strip(), "Default Address Address1": row.get("billing_address_1", "").strip(), "Default Address Address2": row.get("billing_address_2", "").strip(), "Default Address City": row.get("billing_city", "").strip(), "Default Address Province Code": row.get("billing_state", "").strip().upper(), "Default Address Country Code": row.get("billing_country", "").strip().upper(), "Default Address Zip": row.get("billing_postcode", "").strip(), "Phone": phone, "Accepts SMS Marketing": "no", "Tags": tag, "Note": note, "Tax Exempt": "no", }) written += 1 print(f"wrote {written} customers, skipped {len(skipped)} (IDs: {', '.join(skipped)})") if __name__ == "__main__": convert(sys.argv[1], sys.argv[2]) 

Run it:

python3 woo_to_shopify.py woo_customers.csv shopify_customers.csv 

Output from the sample file:

wrote 3 customers, skipped 2 (IDs: 104, 105) 

And the resulting shopify_customers.csv:

First Name,Last Name,Email,Accepts Email Marketing,Default Address Company,Default Address Address1,Default Address Address2,Default Address City,Default Address Province Code,Default Address Country Code,Default Address Zip,Phone,Accepts SMS Marketing,Tags,Note,Tax Exempt Jane,Doe,jane.doe@example.com,yes,,12 High Street,Flat 3,Leeds,,GB,LS1 4AB,+447700900123,no,woo-import,WooCommerce customer ID 101,no Tom,Martin,tom@example.ca,no,Maple Supplies Ltd,400 King St W,,Toronto,ON,CA,M5V 1K4,,no,woo-import,WooCommerce customer ID 102; phone on file: 416 555 0142,no Priya,Shah,priya@example.com.au,yes,,8 George St,,Sydney,NSW,AU,2000,+61255501234,no,woo-import,WooCommerce customer ID 103,no 

Why the script makes these choices

  • Email marketing is "no" unless the source says yes. An empty opt-in column means you don't know, and not knowing isn't consent. In the UK, PECR and UK GDPR set the rules for marketing email consent, and Canada's CASL expects you to be able to show consent, so if the record isn't there, leave it as "no".
  • SMS marketing is always "no". Email consent doesn't cover text messages. Collect SMS consent separately on Shopify.
  • Phones without a country code go to the note. Shopify can reject a row whose phone number it can't read, or one that already belongs to another customer. Tom's 416 555 0142 is kept in the note so nothing is lost, and someone can add the +1 later.
  • Every row gets a tag. woo-import lets you build a segment of migrated customers for the "we've moved, here's how to sign in" email, and lets you compare them with new Shopify customers later.
  • The WooCommerce ID goes in the note. It's the link back to the old system when you match orders or answer a support question.
  • State codes pass straight through. WooCommerce uses short codes like ON and NSW for countries where Shopify expects a province code. UK stores often leave the county empty, which is fine.

Before you import for real

  1. Import a test file of 10 to 20 customers into a development store and check a few customer records by hand.
  2. Count the rows in and out. The script prints what it skipped; make sure every skip has a reason you accept.
  3. Import customers before orders, so the order import can attach each order to an existing customer by email.
  4. Plan the customer email: why the store moved, how to sign in, and that order history is still there (if you imported it).

Customer and order data is the part of a migration you can't redo cheaply after launch, so it's worth a dry run. If you'd like help planning or running the move, Dzimark's Shopify migration team builds Shopify stores and migrations for businesses in the USA, UK, Canada and Australia.

FAQ

Can I move customer passwords from WooCommerce to Shopify?
No. WordPress only keeps password hashes, and Shopify can't use them. Customers either set a new password from an account invite or, with Shopify's newer customer accounts, sign in with a one-time code by email.

Can I import past orders with the Shopify admin CSV import?
No. The admin import handles products and customers. Use a migration app such as Store Migration or Matrixify, or the Admin API, for historical orders.

Will subscribers keep their subscriptions after the move?
It depends on your payment gateway and the subscription app you choose on Shopify. Check with both before launch, and have a plan for customers who need to re-enter card details.