The honest part
We have not yet moved a SmartWeb shop to WooCommerce. We work in WooCommerce daily – our own product Lynbro Danadresse is on wordpress.org for the WooCommerce checkout, and our furniture-assembly site has 5,937 product pages in WooCommerce. The field names below are Dandomain’s own; the script was tested on made-up files, not a real shop.
Heading to Shopify instead? See shopify.best-choice.dk. Staying with Dandomain but leaving Classic? See dandomain.best-choice.dk.
What the export gives you
The export delivers 14 data types as CSV or XML, including products and variants, categories, orders, pages, users and SEO redirects; you pick fields and filters and can save a template. Orders come from Ordrer > Alle > Eksportér. The export module comes with the Growth plan.
SmartWeb fields and WooCommerce columns
| SmartWeb field | WooCommerce column | Note |
|---|---|---|
| NUMBER | SKU | WooCommerce matches updates on SKU or ID |
| TITLE_DK | Name | Suffix may be _DK or _DK_1 |
| DESCRIPTION_LONG / SHORT | Description / Short description | HTML comes along |
| PICTURES | Images | Pipe-separated; must become commas and full URLs |
| WEIGHT | Weight (kg) | SmartWeb uses kilograms |
| VAT_GROUP | Tax class | 0 = standard VAT, i.e. empty tax class |
| VARIANT_ID, VARIANT_TYPES | Type = variation, Parent | Variant points at parent SKU |
| EAN | Global Unique ID | In WooCommerce’s newer docs, not in the schema |
| URL | (used for redirects) | WooCommerce’s schema has no slug column |
What does not move
- Passwords. The PASSWORD field is always blank in the export; customers set a new one in WooCommerce.
- Orders as orders. The order export is an archive. WooCommerce’s CSV tool covers products only, so customers and orders need a plugin or the API. Keep the order file with your books.
- Gift cards and reviews. Neither is an export type; note gift card balances before the old shop closes.
- Design. SmartWeb themes are Smarty templates with
meta.jsonand server-compiled SCSS; none of it works in WordPress.
Order of work
- Count and clean. On a Danish workwear shop we maintain in WooCommerce, 56 % of variant combinations were dead – clean the file, not the new shop.
- Export products with variants, categories, users and SEO redirects as CSV; orders as an archive.
- Reshape with the script and import under Products > All Products > Import as UTF-8 CSV. Images are fetched from URLs, but alt text is not set.
- Variants. No variant published without a price: WooCommerce picks the first matching variation, and a priceless “any/any” variation makes the product unbuyable.
- Checkout and shipping. Our dk-shipping plugin covers PostNord and GLS, not DAO.
- Redirects from every old
/shop/…address, then the DNS switch and 404 monitoring.
Recipe: SmartWeb CSV to WooCommerce
SmartWeb’s import wants ISO-8859-1 with semicolons; the export encoding is not stated, so the script tries UTF-8 first and falls back to the Windows code page. WooCommerce wants UTF-8.
#!/usr/bin/env python3
# SmartWeb export (products.csv) -> woo-products.csv + redirects.csv
import csv, io, re
from pathlib import Path
SHOP = "https://www.your-shop.dk" # old images are fetched from here
LANG = "DK" # "DK_1" if the shop has several sites
def read(name):
raw = Path(name).read_bytes()
for enc in ("utf-8-sig", "cp1252"):
try:
text = raw.decode(enc); break
except UnicodeDecodeError:
continue
dialect = csv.Sniffer().sniff(text[:4096], delimiters=";,")
return list(csv.DictReader(io.StringIO(text), dialect=dialect))
def slug(s):
s = s.lower().translate(str.maketrans({"æ": "ae", "ø": "oe", "å": "aa"}))
return re.sub(r"[^a-z0-9]+", "-", s).strip("-")
rows, redirects = [], []
for r in read("products.csv"):
pics = [p for p in (r.get("PICTURES") or "").split("|") if p]
variant = bool(r.get("VARIANT_ID"))
rows.append({
"Type": "variation" if variant else "simple",
"SKU": r.get("NUMBER", ""),
"Name": r.get(f"TITLE_{LANG}", ""),
"Description": r.get(f"DESCRIPTION_LONG_{LANG}", ""),
"Regular price": (r.get("PRICE") or "").replace(",", "."),
"Weight (kg)": r.get("WEIGHT", ""),
"Images": ", ".join(p if p.startswith("http") else f"{SHOP}/upload_dir/shop/{p}" for p in pics),
"Parent": "", # variants: fill in the parent SKU (not a field in the export)
})
if r.get("URL") and not variant:
redirects.append([r["URL"].strip(), "/product/" + slug(r.get(f"TITLE_{LANG}", "")) + "/"])
with open("woo-products.csv", "w", encoding="utf-8", newline="") as f:
w = csv.DictWriter(f, fieldnames=list(rows[0])); w.writeheader(); w.writerows(rows)
with open("redirects.csv", "w", encoding="utf-8", newline="") as f:
csv.writer(f).writerows([["source", "target"], *redirects])
Check the price field in your own export first, and compare redirects.csv with the real product URLs after import.
Redirects
SmartWeb’s SEO redirects carry SOURCE, TARGET and SEOREDIRECT_TYPE (301 or 302). In WordPress we use the free Redirection plugin – over two million active installs, 301 redirects, CSV import and 404 logging. Export one redirect from it first and match its columns. After launch, our checks read the target page’s content, not only the status code.
SmartWeb to WooCommerce
Can WooCommerce import SmartWeb’s file directly?
No. Field names differ, images are pipe-separated and the encoding may differ. The file must be reshaped.
Do we lose order history?
Not if you keep the order export. It cannot become WooCommerce orders without a plugin or the API, but it can be archived.
Where should the WooCommerce shop be hosted?
It depends on traffic and budget. The Danish WooCommerce stack is on woocommerce.best-choice.dk.
Sources
- Dandomain – export and order export — checked 01.12.2026
- Dandomain – product fields, customer fields, redirects — checked 01.12.2026
- Dandomain – import — checked 01.12.2026
- WooCommerce – Product CSV Importer and CSV schema — checked 01.12.2026
- Redirection on wordpress.org — checked 01.12.2026
Fixed price, no commitment
Get a free SmartWeb check and a fixed price
Tell us briefly what you use today and what you want to achieve. A person answers by e-mail with a proposal and a fixed price before any work starts.
- A fixed price before we start
- An answer by e-mail, no calls
- Your details are used only to answer you