-
Copy next line under 'imports' in Sylius config/packages/_sylius.yaml directory:
- { resource: "@SyliusUnzerPlugin/src/Resources/config/config.yaml" } -
Require Unzer repositories in composer.json (This is required step until repository is not public):
"repositories": [
{
"type": "vcs",
"url": "git@github.com:unzerdev/sylius.git"
},
{
"type": "vcs",
"url": "git@github.com:unzerdev/integration-core.git"
}
]-
Run: composer require unzer/sylius-plugin 2.*
-
Run migrations in Sylius root directory:
bin/console doctrine:migrations:migrate
-
Import the routing in your config/routes.yaml file in Sylius root directory:
unzer_routes: resource: "@SyliusUnzerPlugin/src/Resources/config/routing.yaml" unzer_admin_routes: resource: "@SyliusUnzerPlugin/src/Resources/config/admin_routing.yaml" prefix: '/%sylius_admin.path_name%'
-
Installing assets without webpack: Run following command in Sylius root directory:
bin/console assets:install
The UNZER_ENCRYPTION_KEY exists with a default value. It is not recommended to use this in production systems. Instead, you should run the following command:
php bin/console sylius:unzer-key:createAfter generating the key, set the value as an environment variable (UNZER_ENCRYPTION_KEY) for your environment.
- Run the following command to clear the store cache to ensure translations function correctly:
php bin/console cache:clear