From SmartWeb to WooCommerce

Some SmartWeb shops want to own their code and hosting. The road to WooCommerce runs through the shop’s own export: CSV files with fixed field names that must be reshaped into WooCommerce’s product format. Here is what the files hold, what cannot come along, and a script for the heavy lifting.

Last checked:

Where to clickOrder of work
  • Products
    • All Products
  • Ordrer
  1. Products
  2. All Products
  3. Import

Import

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 fieldWooCommerce columnNote
NUMBERSKUWooCommerce matches updates on SKU or ID
TITLE_DKNameSuffix may be _DK or _DK_1
DESCRIPTION_LONG / SHORTDescription / Short descriptionHTML comes along
PICTURESImagesPipe-separated; must become commas and full URLs
WEIGHTWeight (kg)SmartWeb uses kilograms
VAT_GROUPTax class0 = standard VAT, i.e. empty tax class
VARIANT_ID, VARIANT_TYPESType = variation, ParentVariant points at parent SKU
EANGlobal Unique IDIn WooCommerce’s newer docs, not in the schema
URL(used for redirects)WooCommerce’s schema has no slug column
Dandomain data fields and WooCommerce’s CSV schema, checked 1 December 2026.

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.json and server-compiled SCSS; none of it works in WordPress.

Order of work

  1. 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.
  2. Export products with variants, categories, users and SEO redirects as CSV; orders as an archive.
  3. 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.
  4. Variants. No variant published without a price: WooCommerce picks the first matching variation, and a priceless “any/any” variation makes the product unbuyable.
  5. Checkout and shipping. Our dk-shipping plugin covers PostNord and GLS, not DAO.
  6. 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

Last reviewed: 2026-12-02

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

Fields marked with * are required.

What should we look at?