Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,199 of 9,199 pages
About the help in other languages
All help pages

Product imports and migrations

Loading a product catalog into Exponential - the ezcsvimport script and its file format, price and image columns, what it does not do (updates, header rows), converting prices to ezmultiprice, packages, code and remote…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/e-commerce/operations/product-imports-and-migrations.md

On this page

Product imports and migrations

This page is for developers, agencies and merchants who load a catalog into an Exponential store, either once from another shop system or regularly from a supplier file. It describes the tools that exist, their exact behavior and a plan for a migration.

Contents

  1. The tools
  2. The CSV import in detail
  3. Preparing the file
  4. What the CSV import does not do
  5. Larger migrations
  6. A migration plan

The tools

ToolDoesFits
bin/php/ezcsvimport.phpCreates and publishes new objects of one class below a node from a CSV fileA first load of a simple catalog
bin/php/ezcsvexport.phpWrites a subtree to one CSV file per classTemplates for the import, checks, price lists
bin/php/convertprice2multiprice.phpConverts ezprice fields to ezmultipriceMoving to several currencies (Price fields compared)
PackagesMove classes and content between installationsMoving a catalog between your own installations (Packages)
CodeCreating and updating content from PHPRegular feeds, updates, complex sources (Creating content in code)
expservices product servicesProducts and prices over HTTP, including expproduct::setPriceUpdates from another system (Headless commerce with expservices)

Imports and exports are recorded in the audit trail (data.*, routed to the commerce channel).

The CSV import in detail

php bin/php/ezcsvimport.php --class=product --creator=14 --storage-dir=import/images 2 products.csv
ArgumentMeaning
--classIdentifier of the class to create
--creatorUser id recorded as the creator
--storage-dirDirectory prepended to image, file and media paths in the file
first argumentNode id of the parent folder
second argumentThe CSV file

From the code (kernel/private/classes/commands/ezcsvimport.php): each line becomes one new object; the fields are filled in the order of the class's attributes, column by column, through each datatype's fromString(); then the object is published.

Preparing the file

  • Separator ;, enclosure ", escape \.
  • No header row: the first line is imported as a product too.
  • One column per class attribute, in the class's order; leave a column empty to leave the field empty.
  • Prices in the datatype's text form: ezprice as 19.90|<VAT type id>|1 (1 including VAT, 0 excluding), ezmultiprice as <VAT type id>|1|EUR|19.90|CUSTOM|USD|21.50|AUTO (Price fields compared).
  • Images, files and media as paths relative to --storage-dir.
  • Export one existing product with ezcsvexport.php and use its line as the pattern.

What the CSV import does not do

Not doneConsequence
Update existing objectsRunning a file twice creates every product twice
Match by item numberUpdates need code or services
Skip a header rowRemove it before importing
Map columns by nameReordering class attributes breaks old files
Create foldersImport each category into its own folder, one run per folder

Larger migrations

From another shop system, the catalog is only one part:

DataApproach
Products, prices, imagesCSV import for simple catalogs; code for options, relations and translations
CategoriesFolders created first, by hand or in code
CustomersOnly with a lawful basis and a plan for passwords; often better to let customers register again
Past ordersUsually kept in the old system or exported for the records; the order tables are not designed for imports
URLsRedirects from old product addresses (Redirects and moved content)

The trainers' migration course covers moving sites in general (Migration course).

A migration plan

  1. Model the classes (Catalog modeling in depth).
  2. Create VAT types, product categories and currencies; note their ids.
  3. Export a sample from the old system; convert it to the column order and price format.
  4. Import into a test copy; check Store > Products overview and ten products by hand.
  5. Fix the converter, not the imported data; repeat until clean.
  6. Set up redirects from old addresses.
  7. Import into the live store before opening, then run the store test plan (Testing a store).

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x