Emergency

In urgent situations or outages, you can send a text message to our emergency line

Emergency line (text message only)

+45 29 70 15 95

Send a text message with the following information:

  • Your name and webshop
  • A description of the problem

Note: This service is only for critical situations where your webshop is down or has serious problems. For regular support, please use our normal support channels.

Import customers from a CSV file

How to import customers into your online store with a CSV file: which columns Shoporama reads, how duplicates are handled by email address, and what to watch out for along the way.

Reading time: about 19 minutes
Store owner

Are you moving to Shoporama from another platform, or do you just need to fix the phone numbers of 800 customers at once? With the customer import, you upload a CSV file that both creates new customers and updates the ones you already have, without opening one profile at a time.

CSV is a common spreadsheet format that Excel, Numbers, and Google Sheets can all save. Here you get the exact column names, the rules for the file, what happens to customers who already exist, and the pitfalls you need to know about when you import customers from a CSV file.

Where to find the customer import

  1. Click Customers in the menu in your Shoporama admin.
  2. Choose Registered customers.
  3. Scroll down below the customer list and click the Import customers button.

The page is called Upload customer database. On the customer list, the Download all customers button sits right next to the import button, and it is extremely useful: it gives you a file in the format the import expects. If you already have customers, the fastest route is to download the export, edit it, and upload it again. You do not have to remove anything first. The points_balance column with the customers' points balance is not read by the import, so nobody gets their points a second time.

The Upload customer database page in Shoporama with a field for the CSV file, the Send welcome email when customer is created checkbox, the Import button, and an explanation of which fields the import reads
On the import page, you choose the CSV file and decide whether to send a welcome email. On the right, you see exactly which columns the import reads, and why the points_balance column is deliberately not read.

How the CSV file should look

  • Semicolon as the separator. The columns are separated by ;, not by a comma or a tab. That is the default in Danish Excel, so it usually works on its own.
  • The first row contains the column names. If you forget the header row, your first customer is read as column names and is not created.
  • Use the English field names. The column with email addresses must be called email, not "E-mail" or "Mail". Uppercase and lowercase letters, on the other hand, do not matter.
  • The order is up to you. You decide which columns the file contains, and in what order. Columns Shoporama does not recognize are skipped.
  • Save as UTF-8. If you choose "CSV UTF-8", you can be sure that special characters such as æ, ø, and å come through correctly.
  • A semicolon inside a value requires quotation marks. If a field itself contains a semicolon, the whole value must be in double quotation marks.
  • One file at a time. The import reads only one file per upload, so split a large data set into several runs.

An example with the most common columns:

email;name;company;vat_number;own_id;address;zipcode;city;phone;country_name
anna@example.com;Anna Hansen;;;K-1042;Vestergade 12;5000;Odense C;12345678;Danmark
bo@example.com;Bo Jensen;Bo Jensen ApS;DK12345678;K-1043;Havnegade 3;8000;Aarhus C;87654321;Danmark

The file does not have to be nearly that wide. If you only need to fix phone numbers, this is a perfectly valid import:

email;phone
anna@example.com;12345678
bo@example.com;87654321

The columns Shoporama reads

Customer and billing address

  • email is the only required column. Rows without an email address are skipped.
  • name becomes Name, and phone becomes Phone.
  • company becomes Company name, and vat_number becomes CVR number (Danish company registration number).
  • own_id becomes Own ID. This is where you put your own customer number from your accounting or your old system.
  • address, zipcode, and city become Address, Zip code, and City.
  • country_name is the name of the country, written exactly as the country is named in your store.

Shipping address

If the customer has a shipping address that differs from the billing address, fill in shipping_name, shipping_address, shipping_zipcode, shipping_city, and shipping_country_name.

Points and your own profile fields

  • points gives the customer points. The column only works if your loyalty program is turned on. If it is not active, the column is ignored without an error message.
  • If you have created your own fields under Customers → Profile fields, they can also be imported. The column must have the same name as the field. Uppercase and lowercase letters do not matter here either, so if the field is called "Birthday", both Birthday and birthday work.

What the import cannot do

Passwords cannot be imported. The same goes for the creation date, last login, EAN number, customer group, and link to a company account. New customers get the import date as their creation date, and their last login is only filled in when they log in to your store. These are set on the customer profile or through the features they belong to, for example customer groups and B2B prices. The import does not sign anyone up for the newsletter either. You do that under Newsletter → Recipients, which has its own import.

Step by step

  1. Download a fresh export with Download all customers. That gives you both a template and a copy of the data as it looked before the import.
  2. Build the file in your spreadsheet with English field names in the header row, and an email address on every row.
  3. Save as CSV with UTF-8 and semicolons.
  4. Test with a small file first. Take three to five customers, run the import, and see if the result is what you expect.
  5. Go to Customers → Registered customers → Import customers and choose the file under Upload CSV file.
  6. Decide on Send welcome email when customer is created. Only check it if the customers should be notified right away.
  7. Click Import, wait for the confirmation, and look up a few customers to check the result. Do not close the tab while the import runs.

What happens to customers who already exist?

The email address is the key. If the address already exists in your store, the existing customer is updated. So no duplicate is created, and order history, points, and other data stay with the customer. If the address does not exist, the customer is created as new. Customers who are not in the file are not touched, and the import never deletes anything.

An important detail: empty fields do not overwrite anything. If you include the phone column but leave it empty for a customer, the customer keeps their current number. That is why you can safely make a file with only the columns you want to change. The downside is that you cannot clear a field through the import. If an address needs to be deleted, you do it on the customer profile.

The confirmation: how to read the numbers

  • The green box shows how many users were imported. The number covers both newly created and updated customers.
  • A yellow box shows rows that were skipped because they had no email address. Empty lines at the bottom of the file count here too, so a small number is not necessarily a problem.
  • The yellow box also shows rows with an invalid email address. That check only applies to new customers, so an existing customer with an odd-looking address can still be updated.

If you are told about invalid email addresses, fix the addresses and run the file again. It is safe to run the same file twice, with one exception: points.

Five things to watch out for

1. Country names must be written exactly

If the name in country_name is not among the store's countries, a new country is created with exactly the name in the file. If you write "DK", "danmark", and "Danmark" in the same file, you end up with three countries, and a new country has no shipping prices. Check your country names under Delivery → Countries, and copy them exactly. Read more about countries and currency.

2. Points are added on top, every time

The points column creates a new, approved points entry with the note "Assigned via import". It adds instead of replacing, so if you run the same file twice, the customer gets the points twice. If you are working from the file you got from Download all customers, leave the points_balance column as it is. It shows the customer's current balance, is deliberately named differently, and is not read by the import. If you rename it to points, the entire balance is added on top one more time. If the damage is done, click the customer's number in the Active points column on the customer list, select the entries, and use Delete selected.

3. Only new customers get a password

Passwords cannot be imported. Newly created customers get a random password, and existing customers keep the one they have, so their login keeps working no matter how many times you run a file. If a new customer wants to log in, they need either the welcome email with their password, or to use the store's "forgot password" feature and receive a link. The same applies to customers who were created when placing an order without choosing a password.

4. The welcome email is only sent to new customers

If you check Send welcome email when customer is created, the newly created customers receive an email with their password, while updated customers receive nothing. The emails go out the second you click Import, so it is a good idea to check first that the email looks right. It is the user-welcome-mail.html file from your theme.

5. Large files can run out of time

The import runs while you wait, and very large files can hit the server's limit for upload size or run time. If it stalls, split the file into chunks of, for example, 1,000 to 2,000 rows. Since the email address is the key, you can safely run several files in a row.

What you can use it for in practice

  • Moving from another platform. Bring your entire customer base with you. Customers keep their email address as their login, so you build on the customer relationships you already have instead of starting over.
  • Bulk updates. New phone numbers, corrected addresses, or CVR numbers for business customers. A file with two columns does in a minute what would otherwise take an afternoon of clicking.
  • Customer numbers from your accounting. Put your own numbers in own_id, so your online store and your accounting software speak the same language when you reconcile.
  • Points for loyal customers. If you are starting a loyalty program, you can give your most loyal customers a starting balance, so the program feels alive from day one.

Do the customers' old orders need to come along too?

The customer import only brings over the customers, not their orders. You can import your previous orders separately as historical orders with Claude or through the REST API. Import the customers first and the orders afterward. That way, each order is linked to the customer with the same email address, and customers can see their old orders when they log in. The orders count toward the customer's order history and the customer statistics, and no emails are sent.

For the technically minded

  • The file is read with a semicolon as the field separator and a double quotation mark as the text delimiter. A byte order mark is removed automatically, and the content is converted to UTF-8 based on the detected character set. The detection is not foolproof, so it is better to save as UTF-8 yourself.
  • Column names are converted to lowercase, and both names and values are trimmed of spaces. Unknown columns are ignored, which is why the export file's id, created, last_login, and points_balance simply pass through when you re-import your own export. It also means that the customer's Last login cannot be set through the import.
  • Only values that are not empty are written to the customer. That is why empty cells do not overwrite existing data.
  • New customers trigger the same customer_created webhook as a regular sign-up in the store, so be prepared for a spike in your integrations during large imports. See the article about webhooks in Shoporama.

Frequently asked questions

I use Excel. How do I save the file correctly?

Choose "Save As" and one of the CSV UTF-8 formats. The format is often called "comma delimited", but Danish Excel writes semicolons anyway, because the semicolon is the list separator in Danish regional settings. So you typically do not need to do anything else. If you want to be completely sure, open the file in a text editor afterward and look at a line with æ, ø, or å.

Can I update just one field for several thousand customers?

Yes, and that is the cleanest way to do it. Make a file with the email column and the one column you want to change. Everything else on the customer profile is left untouched, because empty and omitted fields do not overwrite anything.

What happens to customers who are not in the file?

Nothing. The import creates and updates, but it never deletes. If you need to remove customers, select them on the customer list and use Delete selected.

Can I bring over our customer numbers from the accounting software?

Yes. Use the own_id column, and the number lands in the Own ID field on the customer profile. That makes reconciliation between your online store and your accounting easier when you need to find a customer across systems.

I got "invalid email" on some rows. What do I do?

Those rows were not created, but the rest were. Fix the addresses in the spreadsheet and run the file again. You can easily upload the whole file again, because the customers who were already created are simply updated. If you added the points column yourself, remove it first, otherwise the customers get their points a second time. The points_balance column from the export can stay.

Can I put customers in a customer group through the import?

No, customer group is not one of the fields the import reads. You set the group on each customer profile under Customer group, or you work with company accounts if you run B2B. The same applies to the EAN number and the link to a company account.

Are my imported customers signed up for the newsletter?

No. The customer import does not touch the newsletter. If people need to go on the list, you do that under Newsletter → Recipients, where there is a separate import. Remember that you need a legal basis for sending marketing to them.

Can I create orders for the imported customers afterward?

Yes. From the customer list, you can create an order directly for a customer, so the name and address are filled in ahead of time. That is handy for phone orders and B2B. See the guide to creating orders directly from the customer list.

If the file is giving you trouble, or you are unsure about a particular data set, email support@shoporama.dk with a few sample rows, and we will take a look.