Skip to main content

What do I need to consider when migrating from Shopware 5 to Shopware 6?

Shopware 6 — Migrate your Pickware data from Shopware 5 to Shopware 6 and learn how to transfer stock, bin locations and suppliers manually.

To use Pickware for Shopware 6, you need at least the Shopware Community Edition. You can then install Pickware as usual from the Shopware Community Store. Below, we show you the further steps for migrating your data to Shopware 6. If you run into problems or have questions during the process, contact us via the contact form.

General information about the migration

When migrating from Shopware 5 to Shopware 6, you can first export stock, bin locations and suppliers from Shopware 5 and then import them again into your new shop system. Pickware does not currently offer an automatic migration, so you have to transfer your Pickware data manually.

Shopware also offers a migration assistant that you can use to transfer data such as orders, products and customers to your new shop. Some data cannot be migrated; you can find more information on this below.

Fully complete all orders received in Shopware 5 in Shopware 5. This includes shipping, invoices, cancellations/refunds and the export for DATEV. Otherwise, errors and problems may occur during processing.

When setting up the number ranges in Shopware 6, also plan for a buffer: set the start number so that it is safely above the last number assigned in Shopware 5 – and keep in mind that further invoices may still be created in Shopware 5 until all open processes are completed.

To sell vouchers at the cash register or in the online shop in Shopware 6, you can use the corresponding extension by Net Inventors GmbH. You can find out how to migrate your existing vouchers to Shopware 6 here.

Installing Pickware

You can install Pickware ERP either via the Shopware Community Store or via Composer. Installation via Composer is explained in this article.

Creating or migrating a Pickware Account

To use Pickware in Shopware 6, you need a Pickware Account. You can create one here. In your Pickware Account, you manage your subscription and billing, book licenses for WMS and POS and manage your connected iOS devices. You can find more information about the Pickware Account here in the helpcenter.

Using an existing account

If you already have a Pickware Account from the Shopware 5 world, you can start the migration and the associated trial phase directly in the account management. To do so, proceed as follows:

  1. Log in to your Pickware Account and make sure your Shopware 5 shop is selected at the top left. Either click Migration in the menu bar on the left or use the Start migration button shown at the top of the start page.
    ​

    Testphase_1a.png

  2. Select Shopware 6 as your shop system.
    ​

    Testphase_1.png

  3. Select which features you want to test.
    ​

    Testphase_SW_2.png

  4. Enter the shop URL of your Shopware 6 shop in the field below.
    ​

    Testphase_SW_3.png

  5. Select the shop URL of the shop to be migrated from the list. Then click Start now.
    ​

    Testphase_SW_4.png

  6. You have now started the migration phase. You can select and manage your Shopware 6 shop via the drop-down menu at the top left.

  7. You can now migrate your data from Shopware 5 and prepare your Shopware 6 shop. You can find more information about the migration below.

Migrating Shopware data

To migrate your Shopware data (products, customers, orders, ...), you can use the Shopware migration assistant. You can find more information and instructions here.

Migrating number ranges

There is no automated way to migrate your number ranges from Shopware 5, which means you have to create them again in Shopware 6. You can find the configuration of the number ranges in Shopware 6 under Settings → Shop → Number ranges. Here you will find various preconfigured number range types that you can adapt to your needs. These apply globally, i.e. to all of your Sales Channels. If you create your own number ranges, you can also restrict them to individual Sales Channels.

The Start number field is particularly important here. You can configure it so that, for example, the invoice number of the first invoice created in Shopware 6 follows on from the invoice number of the last invoice created in Shopware 5. Allow a sufficient gap in case documents for open orders are still created in Shopware 5 while you complete the migration.

You can also find more information about number ranges in the Shopware documentation.

Migrating POS branch stores and cash registers

If you use POS branch stores and cash registers from Shopware 5, set them up again in Shopware 6. To do so, proceed as follows:

  1. Perform a cash closing at all existing cash registers while they are still connected to Shopware 5.

  2. Decommission the cash registers in the Pickware Account.

  3. Reset the configurations of the cash registers and then set up the cash registers again.

  4. Connect the cash registers to your Shopware 6 shop.

  5. Create new branch stores and assign the cash registers to the branch stores.

Completing open orders before the final migration run

Orders that are not yet fully completed in Shopware 5 are carried over to Shopware 6 as open, for example with the status partially delivered, in progress or ready for delivery. Pickware reserves stock for these orders. If there are many of them, the available stock becomes negative even though the physical stock was imported correctly.

Here is how to avoid this:

  1. In the Shopware migration assistant, check the mapping of the order statuses. Assign statuses that stand for fully processed orders in Shopware 5 (e.g. completely delivered) to Completed.

  2. Complete open and partially delivered orders in Shopware 5 before the final migration run. Plan for a buffer.

  3. After the final migration run, check the available stock. Set orders that are incorrectly open to Completed as described in the following section and then update the indexes.

Note on orders without a delivery status

Completed orders may incorrectly be created without a delivery status and not in the order status Completed. As a result, stock is reserved according to the order items. To fix this problem, the order status of these orders must be set to Completed manually. You can make this change either via an SQL query or via bulk edit in the Shopware Admin for a maximum of 100 orders at a time.

Changing the status via bulk edit

In your Shopware 6 Shop Admin, navigate to Orders → Overview and click the filter icon. In the Order status field, select the entries In progress and Open.

Filtereinstellungen3.png

The order overview now only shows the orders with the order status In progress and Open. Now click once in the Delivery status column to sort all orders by their delivery status. If there are orders without a delivery status, they should now appear at the very top of the list. In this case, the Delivery status field is empty.

Bestellung_ohne_Lieferstatus.png

Now check, for example based on the date or your Shopware 5 shop, whether these are actually completed orders. If so, you can adjust the order status, e.g. via bulk edit.

To do so, select all relevant orders using the checkbox on the left and then click Bulk edit at the top.

Mehrfachänderung.png

In the next window, click Start bulk edit and select the status change for the order status as follows:

Status_ändern.png

Please note that Shopware always performs status changes in individual steps. This means that the change from Open can only go to In progress, and only from In progress to Completed. You may therefore need to perform the status change in two stages.

Afterwards, all indexes must be updated under Settings → System → Caches & indexes. To do so, select all options in the dropdown menu and then click Update indexes.

SW6_Indizes.png

All orders without a shipping status should now have the order status Completed and therefore no longer reserve stock.

Changing the status via SQL query

To change the status of the orders via your database, use the following SQL query:

UPDATE `order`
SET `order`.`state_id` = (
SELECT `state_machine_state`.`id`
FROM `state_machine_state`
JOIN `state_machine`
ON `state_machine`.`id` = `state_machine_state`.`state_machine_id`
WHERE
`state_machine_state`.`technical_name` = "completed"
AND `state_machine`.`technical_name` = "order.state"
)
WHERE
-- Hier das "Grenzdatum" anpassen
`order`.`order_date_time` < "2024-07-01 00:00:00"
-- Nur Bestellung in der Live-Version aktualisieren (nicht entfernen)
AND `order`.`version_id` = 0x0fa91ce3e96a4bc2be4bd9ce752c3425;

Afterwards, all indexes must be updated under Settings → System → Caches & indexes. To do so, select all options in the dropdown menu and then click Update indexes.

If you have any questions, please contact your agency.

Migrating Pickware data

Of your Pickware data, you can migrate bin locations, stock and suppliers via CSV import. Please note, however, that the stock history cannot be carried over to Shopware 6.

In the next sections, we show what you need to consider for the respective imports.

For the import into Shopware, the CSV file must be UTF-8 encoded and use semicolons as the delimiter. You can find more details on this, and where to find the corresponding configuration option in your spreadsheet program, here.

Bin locations

First, create one or more warehouses in the Shopware 6 Admin under Warehousing → Warehouses and bin locations → Create warehouse. You can find more information on this here.

Once a warehouse has been saved, the Bin locations tab appears, where you can create bin locations either manually or via CSV import. The CSV file for creating bin locations only contains the Code column, in which the bin location identifier is entered.

Lagerplätze_CSV_Beispiel (1).png

To export the bin locations from Shopware 5, you can use the following SQL query, in which the warehouse code of the warehouse to be exported must be adjusted accordingly:

SELECT bl.code
FROM pickware_erp_bin_locations bl
LEFT JOIN pickware_erp_warehouses wh
ON wh.id = bl.warehouseid
WHERE bl.code != 'pickware_null_bin_location'
AND wh.code = 'Lagerkürzel' -- Hier das Lagerkürzel eintragen

Stock

If you previously used the Shopware 6 migration tool, stock from Shopware 5 has already been transferred. Afterwards, the indexes must be updated under Settings → System → Caches & indexes. To do so, select all options in the dropdown menu and then select the method Update all except selection. Then click Update indexes. This way, only the indexes added by Pickware are updated, which speeds up the process.

Since there are no bin locations in standard Shopware 6, the stock now still has to be assigned to the correct bin locations.

Stock of main products with variants

For variant products, the main product is usually not a physically stocked item. After the migration, check whether variant main products have received stock or are treated as stock-managed.

Since stock should be managed correctly at variant level and not via the main product, identify affected main products in the stock overview and correct their stock or stock management.

If you want to adjust stock management in bulk, you can use the Shopware product import/export for this and work with a suitable import/export profile. Depending on your Shopware configuration, it can make sense to test the changes with a few products first.

Exporting stock from Shopware 5

First, perform a CSV export in Shopware 5 under Content → Import/Export. Use the profile viison_pickware_erp_article_stocks_absolute for this. The file serves as the basis for importing your stock into Shopware 6.

Importing stock into Shopware 6

Open the CSV file you just downloaded from Shopware 5 and adjust it by renaming or deleting the columns as follows:

  • articleNumber → Product number

  • warehouse → Warehouse code

  • binLocation → Bin location

  • isDefaultBinLocation → Default bin location

  • physicalStock → Stock

  • availableStock → delete

  • purchasePrice → delete

In any case, make sure that the respective value in the Bin location column corresponds to one of the bin locations you created earlier.

Next, open your Shopware 6 Administration, navigate to Warehousing → Stock overview → Absolute stock import and click Import. Upload your adjusted CSV file here. You can find more information about maintaining stock via CSV import here and about maintaining stock via the Shop Admin here.

In general, it is advisable to carry out a full stocktake of your stock after the stock import. You can find instructions for the stocktake in Shopware 6 here.

Note on the unknown bin location

If you did not use bin locations for products in Shopware 5, i.e. they are managed in the Admin with the bin location label unknown bin location, please note the following.

In the CSV export file from Shopware 5, the unknown bin location is specified as pickware_unknown_location. This label does not exist in Shopware 6, so an import would result in an error. In Shopware 6, the unknown bin location is called unknown instead. Below you will find an overview of different scenarios for the stock booking behavior in Shopware 6:

  • Bin location label = unknown

    • The stock is booked to the unknown bin location.

  • Bin location label = [empty]

    • The stock is booked to the default bin location.

    • If the product has no default bin location, the stock is booked to the unknown bin location instead.

  • Bin location label = pickware_unknown_location

    • The import cannot be performed and an error message appears.

  • Bin location label corresponds to a label that does not exist as a bin location in the Shop Admin

    • The import cannot be performed and an error message appears.

Exporting minimum and target stock from Shopware 5

To do so, perform a CSV export in Shopware 5 under Content → Import/Export. Use the profile viison_pickware_erp_article_stock_limits (Pickware Mindest- und Sollbestände) for this.

Open the CSV file you just downloaded from Shopware 5 and adjust it by renaming or deleting the columns as follows:

  • articleNumber → Product number

  • articleName → delete

  • warehouse → delete

  • minimumStock → Reorder point

  • targetStock → Maximum quantity

Make sure that the CSV file contains at most one entry per product. During the import, the reorder point and maximum quantity of the last entry read are applied for each product. Since Shopware 5 exports all product–bin location combinations, a product can appear multiple times in the export file. In this case, remove the surplus rows or make sure that all rows for a product contain the same reorder point and maximum quantity.

Importing reorder points and maximum quantities into Shopware 6

In Shopware 6, the minimum stock is called reorder point and the target stock is called maximum quantity. In demand planning, the maximum quantity serves as the replenishment target for the purchase suggestion. To display the reorder points and maximum quantities in the stock overview of your Shopware Admin, click the filter icon in the upper right corner and select the option Per product in the top dropdown menu View. Regardless of the view, you can perform exports and imports with the reorder points and maximum quantities here.

Leave out the Stock column during the import. The import then only applies reorder points and maximum quantities and does not change your stock.

Meldebestand_Ansicht_Je Produkt.png

Suppliers and product mapping

Creating suppliers

First, perform a CSV export in Shopware 5 under Content → Import/Export. Use the profile viision_pickware_erp_suppliers for this.

Now adjust the CSV file by renaming or deleting the columns as follows:

  • supplierNumber → Number

  • salutation →delete

  • address → split into

    • Street, Number, Zip code, City, Address addition, Country (please use ISO2 country codes here, e.g. DE for Germany)

  • contact → split into

    • First name, Last name

  • phone → Phone number

  • fax → Fax number

  • email → Email address

  • comment → Comment

  • customerNumber → Customer number

  • deliveryTime → Default delivery time

  • templateShopId →delete

  • currency →delete

In your Shopware 6 Admin under Purchasing → Suppliers, you will find the list settings on the right. There you can see which additional properties can be maintained for suppliers in Shopware 6. If needed, you can also add these via CSV import by inserting a corresponding column in your CSV file.

Listeneinstellungen SW6.png

In the Shopware 6 Administration under Purchasing → Suppliers → Import, you can upload your adjusted CSV file. You can find more information about creating suppliers in this article.

Assigning products to a supplier

First, perform a CSV export in Shopware 5 under Content → Import/Export. Use the profile viision_pickware_erp_article_suppliers for this.

Now adjust the CSV file by renaming or deleting the columns as follows:

  • articleNumber → Product number

  • articleName → Product name

  • supplierArticleNumber → Supplier product number

  • supplierNumber → Supplier number

  • defaultSupplier → Default supplier
    ​Note: In Shopware 5, the information on whether the mapping refers to the default supplier is given as y (= yes) or n (= no). In Shopware 6, you must use ja or nein or yes or no instead.

  • purchasePrice → PP (net)
    ​Note: In Shopware 6, purchase prices can only be imported as net prices. Therefore, check the field Entry of purchase prices in the settings of the Shopware 5 Administration under Settings → Basic settings → Shopware ERP powered by Pickware and then adjust your purchase prices if necessary.

  • currency → delete

  • minimumOrderAmount → Minimum purchase

  • packingUnit → Purchase steps

In your Shopware 6 Admin under Purchasing → Supplier mapping, you will find the list settings on the right. There you can see which additional properties can be maintained for the supplier mapping in Shopware 6. If needed, you can also add these via CSV import by inserting a corresponding column in your CSV file.

Listeneinstellungen_Lieferantenzuordnung_SW6.png

In the Shopware 6 Administration under Purchasing → Supplier mapping → Import you can upload your adjusted CSV file. You can find more information about the supplier mapping in this article.

Please note that you need at least Pickware Advanced to store multiple suppliers per product. When the CSV file is imported, the rows are read from top to bottom. If you have assigned two different suppliers to a product, with Pickware Starter the first entry is overwritten again when the second entry is read. This is also the case if you had deactivated the extension at the time of the import.

Product sets

As in Shopware 5, Pickware also supports the product sets functionality in Shopware 6 from Advanced onwards. You can conveniently transfer your product sets from Shopware 5 to Shopware 6 via CSV import. You can find more information about creating and managing product sets in this article.

Migrating additional data

In both Shopware 5 and Shopware 6, you can create new import and export profiles and thereby migrate additional data to your Shopware 6 shop.

Information type

Field name in Shopware 5

Field name in Shopware 6

Tariff number

attributeViisonCustomsTariffNumber

translations.DEFAULT.customFields.pickware_shipping_customs_information_tariff_number

Country of origin

attributeViisonCountryOfOrigin

translations.DEFAULT.customFields.pickware_shipping_customs_information_country_of_origin

Please note that custom profiles in Shopware 6 are created with a number of required fields that must also be included, filled in, in the import file. It is therefore advisable to first export your newly created profile, add the desired information in this file and then import the modified file again.

You can find more information about creating new import/export profiles at Shopware in the documentation.

Booking Pickware POS and Pickware WMS

WMS and POS licenses from Shopware 5 cannot be transferred to your Shopware 6 shop. If you used Pickware WMS or POS in Shopware 5, the existing licenses must be canceled as part of the migration and booked again for Shopware 6 in your Pickware Account. You can find more details about booking here.

Apart from the iOS apps, no separate installation is necessary. Here in the helpcenter you can find more information about setting up WMS and POS in the Shopware Admin.

Switching Pickware apps

For Pickware in Shopware 5, our familiar apps Pickware WMS and Pickware POS are available to you. If you have so far used the Pickware Lager app, please note that it is no longer available for Shopware 6. The corresponding functions are now part of the WMS App.

For the Pickware apps, you need an Apple device that supports at least iOS 15. You can find more information about the recommended hardware here (WMS) and here (POS). You can download the apps from the App Store as usual.

Before you use the Pickware POS App in Shopware 6, please be sure to note the following for your Shopware 5 shop: First log in on your iOS device as usual and perform a complete withdrawal of the cash balance as well as a cash closing. Then the configuration must be reset so that the app can be set up again. To do so, log out of the app and then select the entry Reset configuration via the gear icon at the top right.

You can find instructions for setting up the WMS and POS App here in the helpcenter.

Handling old POS orders

POS orders are only shown in the sales history in the POS App if they are clearly recognized as POS orders. Two requirements must be met for this:

  1. The order is assigned to a POS Sales Channel and a branch store (BranchStore).

  2. A shipped value is stored for each order item.

The Shopware migration assistant does not automatically assign this information to migrated orders. If you later want to continue to view POS sales from Shopware 5 at the cash register or process returns for them there, the orders therefore have to be manually put into a state that the POS App accepts.

Think beforehand about which sales you really need this for: In most cases, the orders within your return period are sufficient, not all cash register transactions from Shopware 5. The migration assistant takes over your Shopware 5 cash register channel as a normal Sales Channel. Therefore, assign the migrated POS orders to the Pickware POS Sales Channel.

Adding the POS identification for migrated orders

For a migrated order to be recognized as a POS order in the POS App, it needs three things:

  • A branch store assignment in the table pickware_pos_order_branch_store_mapping. Without this entry, the order is not shown in the POS App – even if it has been assigned to a POS Sales Channel.

  • The identification as a POS order via the custom field isPosOrder of the order.

  • A deep link code in the deep_link_code column of the order.

Orders created via the POS App receive these values automatically. For migrated orders, you have to add them once afterwards. You can do this yourself via SQL or have your agency do it.

Create a backup of your Shopware 6 database before the following steps. The commands write directly to the database.

Step 1: Identify POS orders in Shopware 5

In Shopware 5, you can recognize a POS order by the fact that a cash register is assigned to it. The branch store results from the cash register. Run this query in the database of your Shopware 5 shop:

SELECT o.ordernumber, bs.name AS filiale 
FROM s_order o
JOIN s_order_attributes a ON a.orderID = o.id
JOIN pickware_pos_cash_registers cr ON cr.id = a.pickware_pos_cash_register_id
LEFT JOIN pickware_pos_branch_stores bs ON bs.id = cr.branchStoreId
WHERE a.pickware_pos_cash_register_id IS NOT NULL
ORDER BY filiale, o.ordernumber;

You get a list of all POS order numbers, grouped by branch store. The order numbers are retained during the migration.

Step 2: Identify the ID of the branch store in Shopware 6

The branch stores from Shopware 5 are not automatically carried over. Create them in Shopware 6 if you have not done so yet, and then identify their IDs:

SELECT LOWER(HEX(id)) AS branch_store_id, name FROM pickware_pos_branch_store;

Step 3: Assign orders to the branch store

Run this command once for each branch store:

INSERT INTO pickware_pos_order_branch_store_mapping
(order_id, order_version_id, branch_store_id, created_at)
SELECT o.id, o.version_id, UNHEX('{BRANCH_STORE_ID}'), NOW(3)
FROM `order` o
WHERE o.version_id = UNHEX('0fa91ce3e96a4bc2be4bd9ce752c3425')
AND o.order_number IN ({BESTELLNUMMERN});

Here, the values in the curly brackets {} must be replaced with the following values:

  • {BRANCH_STORE_ID} – The ID of the branch store from step 2

  • {BESTELLNUMMERN} – The order numbers of this branch store from step 1, each in quotation marks and separated by commas, e.g. '10001', '10002'

The table contains these fields:

  • order_id and order_version_id – The ID and the version of the order. 0fa91ce3e96a4bc2be4bd9ce752c3425 is the fixed live version in Shopware 6.

  • branch_store_id – The ID of the branch store

  • created_at – The time of the assignment

Each order can be assigned to exactly one branch store.

Step 4: Mark orders as POS orders

This command marks all orders with a branch store assignment as POS orders:

UPDATE `order` o 
JOIN pickware_pos_order_branch_store_mapping m
ON m.order_id = o.id AND m.order_version_id = o.version_id
SET o.custom_fields = JSON_MERGE_PATCH(IFNULL(o.custom_fields, JSON_OBJECT()),
JSON_OBJECT('isPosOrder', true));

Step 5: Add deep link codes

This command generates a new deep link code for all POS orders without one:

UPDATE `order` 
SET deep_link_code = REPLACE(REPLACE(REPLACE(LEFT(TO_BASE64(RANDOM_BYTES(32)), 32), '+', '-'), '/', '_'), '=', '_')
WHERE deep_link_code IS NULL
AND JSON_EXTRACT(custom_fields, '$.isPosOrder') = true;

You can safely run steps 4 and 5 again, for example after you have assigned further branch stores.

Adding shipped values to enable returns

After the migration, POS orders from Shopware 5 do not contain any shipped quantities. Since you need the shipped values to record possible returns for the carried-over orders, these values must be set afterwards. You can use the endpoint provided by Pickware ERP Starter for this:

POST /api/_action/pickware-erp/stock/move

Then you have to execute the following request for each product of an order:

POST /_action/pickware-erp/stock/move HTTP/1.1

[
{
"id": "{NEW_UUID}",
"quantity": {QUANTITY},
"productId": "{PRODUCT_ID}",
"source": "unknown",
"destination": {
"order": {
"id": "{ORDER_ID}"
}
}
}
]

Here, the values in the curly brackets {} must be replaced with the following values:

  • {NEW_UUID} – A newly generated UUID for each order item.

  • {QUANTITY} – The shipped value from Shopware 5

  • {PRODUCT_ID} – The ID of the corresponding product from Shopware 6

  • {ORDER_ID} – The ID of the corresponding order from Shopware 6

Once these values have been added, migrated orders – e.g. from the last 30 days – can also be displayed and returned in the POS App as usual.

You can also import multiple order items in one request by specifying the object multiple times in the root array.

Please also note the documentation of the Shopware 6 Admin API as well as our notes on using the API. If you have questions or anything is unclear, contact your agency or our support.

Completing the migration

If you transfer the domain of your Shopware 5 shop to your Shopware 6 shop to complete the migration, the license domain of your WMS and/or POS licenses for Shopware 6 must also be updated.

  • If you started the migration for Shopware 5 in your Pickware Account, you can change the license domain yourself in the Pickware Account. To do so, log in to your Pickware Account, make sure the Shopware 5 shop is selected and select the entry Migration in the menu on the left. Now click Transfer license domain. This renames the shop URL of your Shopware 6 shop to the previous Shopware 5 domain. The URL of your Shopware 5 shop is extended by the prefix sw5.

  • If you did not use the migration in the Pickware Account, contact support to change the license domain.

Which data cannot be migrated?

The following data cannot currently be migrated from Shopware 5:

  • Supplier orders

  • Stock movements

  • Returns

Note on the DATEV export

For all orders created in Shopware 5, the DATEV export must also be done in Shopware 5, as they would otherwise not be included in an export from Shopware 6.

Further setup steps

After you have completed the basics, various further configuration options around Pickware are available to you. You can find them here in the helpcenter. You can also find general information about Shopware 6 directly at Shopware.

Did this answer your question?