Skip to main content

How do I install Pickware via Composer?

Shopware 6 — Install Pickware step by step via Composer. Add the required repositories and dependencies to your composer.json.

When installing Pickware, you can generally do so either via your Shopware Admin or via Composer. In this article, we show you the installation via Composer. You can find the installation of Pickware via the Shopware Admin in a separate article.

If you have previously installed the Pickware extensions via Composer, they must also be uninstalled via Composer. We also recommend installing Pickware ERP, WMS & POS via Composer if you previously installed the individual Pickware extensions via Composer.

Pickware ERP, WMS & POS

With Pickware ERP, WMS & POS, you get a central extension with all Pickware features. You can get the extension from the Shopware Store.

If you want to switch from the individual Pickware extensions (ERP, ERP Pro, WMS, POS, DHL, GLS or Deutsche Post) to the complete solution Pickware ERP, WMS & POS, you can find instructions on how to proceed in this article.

Performing the installation

Add the following repositories to the composer.json file of your Shopware project:

"repositories": [
{
"type": "composer",
"url": "https://packages.shopware.com/",
"canonical": false
},
{
"type": "path",
"url": "pickware-plugins/*/vendor/pickware/*"
},
{
"type": "path",
"url": "pickware-plugins/*"
}
]

The Shopware Community Store repository ("shopware-packages") may already be present. Make sure that this repository is added before the new path repositories and that the property "canonical": false is set.

In the composer.json file of your Shopware project, add an entry to the require section for each of the plugins you want to install. Replace the version (here "^2.0.0") from the following example with the corresponding current version of the extension.

Example:

"store.shopware.com/pickware": "^2.0.0"

The following identifier applies to the extension:

Extension

require identifier

Pickware ERP, WMS & POS

store.shopware.com/pickware

  • Run the command composer update pickware/* --with-dependencies.

  • Then run ./bin/console plugin:refresh to display the available plugins and their names.

  • Use the plugin name shown there to install the plugin:
    ​./bin/console plugin:install Pickware --activate -c.

The plugin:refresh step is mandatory, because otherwise Shopware does not recognize the newly installed plugins if you try to install them right after the update.

Performing the update

If you want to update Pickware ERP, WMS & POS via Composer, perform the following steps:

  • Run the command composer update pickware/* --with-dependencies.

  • Then run ./bin/console plugin:refresh.

  • Update the plugin:
    ​./bin/console plugin:update Pickware -n -c

Run this step after every composer update — even if no new version of your plugin itself has been released. Pickware plugins internally consist of several shared bundles. If a bundle receives a new version (because another Pickware plugin was updated), the Shopware Community Store makes this version available to all Composer installations. The new bundle code may contain database migrations that are not executed without plugin:update. If the migrations are not executed, SQL errors or crashes in the Shopware Administration may occur.

Updating individual Pickware extensions

If you still use our individual Pickware extensions (ERP, ERP Pro, WMS, POS, DHL, GLS or Deutsche Post), you can continue to update them via Composer.

All extensions that were installed via Composer must also be updated this way. If you want to switch from installing/updating via the Admin to installing via Composer, please be sure to follow the notes here.

Performing the update

Add the following repositories to the composer.json file of your Shopware project:

"repositories": [
{
"type": "composer",
"url": "https://packages.shopware.com/",
"canonical": false
},
{
"type": "path",
"url": "pickware-plugins/*/vendor/pickware/*"
},
{
"type": "path",
"url": "pickware-plugins/*"
}
]

The Shopware Community Store repository ("shopware-packages") may already be present. Make sure that this repository is added before the new path repositories and that the property "canonical": false is set.

  • If you have subscribed to Pickware WMS or Pickware POS, you must additionally download the zip files for the corresponding plugins from your Pickware account and unpack them into a separate pickware-plugins directory of your Shopware installation. This is necessary because these plugins are not provided via the Shopware Community Store.

  • Important: The plugins Pickware WMS and Pickware POS must not be placed in the custom/plugins or custom/static-plugins directories, as this will cause problems during the update.

In the composer.json file of your Shopware project, add an entry to the require section for each of the plugins you want to install. Replace the version (here "^2.0.0" and "^1.6.3") from the following example with the corresponding current version of the extension.

Example:

"store.shopware.com/pickwareerpstarter": "^2.0.0",
"pickware/pickware-wms": "^1.6.3",

The following identifiers apply to the extensions:

Extension

require identifier

Pickware ERP

store.shopware.com/pickwareerpstarter

Pickware ERP Pro

store.shopware.com/pickwareerppro

Deutsche Post Shipping

store.shopware.com/pickwaredeutschepost

DHL Shipping

store.shopware.com/pickwaredhl

GLS Shipping

store.shopware.com/pickwargls

Pickware WMS

pickware/pickware-wms

Pickware POS

pickware/pickware-pos

  • Run the command composer update pickware/* --with-dependencies.

  • Then run ./bin/console plugin:refresh to display the available plugins and their names.

  • Then update your Pickware extensions. We recommend the collective command, which updates all Pickware plugins and their shared bundles at once:
    ​./bin/console plugin:update Pickware -n -c

Alternatively, you can update a single plugin specifically by using the plugin name displayed via plugin:refresh (e.g. ./bin/console plugin:update PickwareDhl -n -c). The plugin:refresh step is mandatory, because otherwise Shopware does not correctly recognize the updated plugins.

Example for Pickware ERP:

./bin/console plugin:update PickwareErpStarter -n -c

Run ./bin/console plugin:update Pickware -n -c after every composer update — even if no new version of your plugin itself has been released. Pickware plugins internally consist of several shared bundles. If a bundle receives a new version (for example because another Pickware plugin was updated), the Shopware Community Store makes this version available to all Composer installations — regardless of whether a new version exists for your plugin (e.g. DHL, GLS or Deutsche Post). The new bundle code may contain database migrations that are not executed without plugin:update. If these migrations are not executed, SQL errors or crashes in the Shopware Administration may occur. Since you do not need to know which plugin ships which bundle, the collective command ./bin/console plugin:update Pickware -n -c is the safe choice here.

Troubleshooting

The packages required for the installation are shipped with the extension in the vendor directory. For Composer to find these packages, the following path repository must be defined in your composer.json file.

"repositories": [
{
"type": "path",
"url": "pickware-plugins/*/vendor/pickware/*"
}
]

If this repository is missing, running composer install results in an error similar to this:

pickware/pickware-erp-starter 1.1.0 requires
pickware/shopware-plugins-dal-bundle ^2.0.0 -> no matching package found.

In some cases, dependencies of Pickware POS or Pickware WMS are included that are not available in the Shopware Community Store. This can lead to the following or a similar error:

Problem 1    - Root composer.json requires pickware/pickware-wms ^2.1.0 -> satisfiable by pickware/pickware-wms[2.1.0].    - pickware/pickware-wms 2.1.0 requires pickware/document-bundle ^2.4.16 -> satisfiable by pickware/document-bundle[2.4.16] from path repo (pickware-plugins/*/vendor/pickware/*) but pickware/document-bundle[2.0.1, ..., 2.4.15.4] from composer repo (https://packages.shopware.com/) has higher repository priority. The packages from the higher priority repository do not match your constraint and are therefore not installable. That repository is canonical so the lower priority repo's packages are not installable. See https://getcomposer.org/repoprio for details and assistance.

This happens when the repository for the Shopware Community Store ("shopware-packages") is not placed before the path repository and/or the property "canonical": false is not set for this repository.

If you update Pickware via the Shopware Admin and the update fails, What can I do if a Pickware update fails in the Shopware Admin? will help you.

Error message Cannot redeclare Franzose\DoctrineBulkInsert\sql() when installing extensions

If you receive the error message Cannot redeclare Franzose\DoctrineBulkInsert\sql() when installing an extension, this may be because you are trying to install an extension via the Shopware Admin even though you have previously installed extensions via Composer.

Fatal error: Cannot redeclare Franzose\DoctrineBulkInsert\sql() (previously declared in /var/www/html/vendor/franzose/doctrine-bulk-insert/src/functions.php:9) in /var/www/html/pickware-plugins/PickwarePos/vendor/franzose/doctrine-bulk-insert/src/functions.php on line 20Symfony\Component\ErrorHandler\Error\FatalError^ {#63#message: "Compile Error: Cannot redeclare Franzose\DoctrineBulkInsert\sql() (previously declared in /var/www/html/vendor/franzose/doctrine-bulk-insert/src/functions.php:9)"

In general, you must decide on one approach for installing all your extensions: installation via Composer or installation via the Admin. To solve this problem, the extension in question must therefore also be installed via Composer.

We recommend the following steps:

  1. Make sure that all Pickware plugins are listed in the require section of the composer.json file

  2. Use the console command bin/console plugin:refresh to check that all plugins are installed

  3. Check in the database that in the plugin table, the value managed_by_composer is set to 1 (True) for the entries of all Pickware plugins.

Error message Cannot redeclare Pickware\DalBundle\BulkInsert\sql() during installation

The error message Cannot redeclare Pickware\DalBundle\BulkInsert\sql() occurs when Pickware WMS or Pickware POS are located in the custom/plugins directory. Move the plugins to the pickware-plugins directory and add the path repositories to your composer.json as described under Performing the update.

Plugins are removed from composer.json during the update

This happens when the plugins are located in the custom directory or a subdirectory of it. The Pickware plugins should be located in a separate directory that is not under custom, such as <installation-root>/pickware-plugins.

Starting with Shopware version 6.6.10.4, it can also happen that Pickware plugins are removed from the composer.json when running plugin:update or plugin:refresh if they are located in the custom/ directory.

What do I need to consider when switching from installation via Admin to installation via Composer?

In this case, the plugin paths must be corrected in the path column of the plugin database table:

  • For Pickware POS: vendor/pickware/pickware-pos

  • For Pickware WMS: vendor/pickware/pickware-wms

Table not found or assets not updated after update

If errors such as Table '...' doesn't exist occur after an update, or changes do not take effect despite clearing the cache, the cause may be a composer install without post-install scripts (e.g. due to a --no-scripts flag in the deployment). In this case, Shopware routines such as database migrations and asset compilation are not executed automatically.

In this case, run the following commands manually:

  1. composer run-script post-install-cmd

  2. bin/console assets:install

  3. bin/console system:update:finish

Recommendation: Add bin/console system:update:finish as a fixed step in your deployment process to ensure that migrations and assets are executed correctly after every update.

Clear the cache before the update

Clear the Shopware cache immediately before an update to avoid outdated cache data interfering with the update process. Otherwise, composer install or composer update may not run through all required steps cleanly.

To do this, run the following command before the update:

bin/console cache:clear

SQL error or crash in the Admin after composer update without a new plugin release

If you see errors such as Table '...' doesn't exist or crashes in the Shopware Administration after a composer update, even though no new release has been published for your plugin, the cause is probably an updated bundle version.

Pickware plugins internally share several bundles. If a bundle is updated as part of another Pickware plugin release, the Shopware Community Store provides this new bundle version via Composer — regardless of whether your specific plugin itself has received a new version. After a composer update, new bundle code may therefore be active while the associated database migrations have not yet been executed.

In this case, run:

bin/console plugin:update Pickware -n -c

This command runs all pending migrations of all Pickware bundles, regardless of whether a new version exists for the respective plugin itself. Recommendation: Add bin/console plugin:update Pickware -n -c as a fixed step after every composer update in your deployment process.

Error message "Token invalid" from packages.shopware.com

If packages.shopware.com reports Token invalid when running Composer, the domain for which the token was generated usually does not match the APP_URL of your shop. In the Shopware Account, create a shop or test shop with exactly this domain, for example with the URL of your local development environment, and generate the token again. The environment does not need to be publicly accessible for this.

Dependency conflict despite compatible version

If Composer reports a dependency conflict even though the Pickware and Shopware versions match, an outdated Composer cache or mirror may be the cause. Clear the cache and then update the packages together:

composer clear-cache
composer update "pickware/*" "shopware/core" -W
Did this answer your question?