Installation
The connector has two parts: a Windows service on the server with Optima and a module in Magento. The order does not matter, but synchronisation starts only when both are running.
Before you start
- The licence key and the link to the service package, from the e-mail you received after purchase.
- Magento 2.4.7 or newer, PHP 8.2-8.4, MSI modules enabled (
Magento_Inventory*). Tested on 2.4.7-p3 with PHP 8.2 and on 2.4.9 with PHP 8.4. - Windows Server 2019 or newer, Comarch ERP Optima on SQL Server (tested on version 2026.5), an administrator account.
- A connection from the store to the Optima server. Steps for a local network, Tailscale, shared hosting and your own HTTPS: Connecting to Optima.
- Outbound HTTPS from both servers to
license.sisl.pl.
1. The service on the Optima server
The package contains everything you need. You do not have to install .NET.
1.1. Unpack the package to C:\Sisl\sync.
1.2. Copy appsettings.Local.json.example to appsettings.Local.json and fill in:
{
"Sisl": {
"ListenUrl": "http://100.64.0.10:5000",
"SharedSecret": "<64 znaki hex>",
"Optima": {
"Server": "localhost\\OPTIMA",
"Database": "CDN_TwojaFirma",
"IntegratedSecurity": true,
"TrustServerCertificate": true
},
"License": {
"Key": "SISL-OPT-XXXX-XXXX-XXXX-XXXX"
}
}
}
ListenUrl is the address of this server as the store sees it. You can generate the secret in PowerShell and enter the same value in Magento later:
$b = New-Object byte[] 32; [Security.Cryptography.RandomNumberGenerator]::Create().GetBytes($b); ($b | ForEach-Object ToString x2) -join ''
1.3. Run the installer in PowerShell as Administrator:
cd C:\Sisl\sync
powershell -ExecutionPolicy Bypass -File .\install-service.ps1
The installer creates the SislSyncService service under the virtual account NT SERVICE\SislSyncService, grants it read-only access to the company database, restricts access to the secrets file, opens a firewall port for private addresses and Tailscale, starts the service and checks its status. At the end it should show that the service is running, the database connection works and the licence is valid.
If your account is not an administrator of the SQL instance, the installer prints a SQL command to run in SQL Server Management Studio.
Prefer a SQL login to Windows authentication? Set "IntegratedSecurity": false together with SqlUser and SqlPassword. The login needs only the db_datareader role in the company database.
2. The module in Magento
cd /var/www/html
composer config repositories.sisl composer https://sisl.pl/composer/optima
composer config http-basic.sisl.pl SISL-OPT-XXXX-XXXX-XXXX-XXXX x
composer require sisl/module-optima:^1.0
bin/magento setup:upgrade
bin/magento cache:flush
In production mode, also run bin/magento setup:di:compile and bin/magento setup:static-content:deploy.
The http-basic syntax is the licence key as the user name and any password, here x.
3. Configuration in the admin panel
Sklepy → Konfiguracja → SISL → Optima Connector (Stores → Configuration → SISL → Optima Connector), in this order:
- 0. Licencja (0. Licence): paste the key, save the configuration, click "Sprawdź licencję" (Check licence).
- 1. Połączenie (1. Connection): set "Włączony" (Enabled) to Yes, then the service address (the one from
ListenUrl) and the HMAC secret. - 2. Produkty, ceny i stany (2. Products, prices and stock levels): map Optima warehouses to MSI sources. Prices from Optima are off by default.
- 5. Dokumenty, klienci (5. Documents, customers): enable this if you want invoices, shipments and customer accounts from Optima.
Field details: Configuration →
Schedules run through Magento cron. Without it, synchronisation starts only from the button.
4. First synchronisation
On the store server, run:
bin/magento sisl:optima:sync
The command shows progress and has no time limit. On our test server, 5000 new products take about 6 minutes, and a run with no changes takes a few seconds. It is safe to run again. The first run creates products and sets stock levels. It checks documents going back 7 days and does not send e-mails to customers.
Without console access, use SISL Optima → Dashboard → Synchronizuj teraz (Sync now). The button works for about a minute at most, and cron finishes the rest.
5. Verification
SISL Optima → Diagnostyka (Diagnostics) shows the state of the licence, connection, clock, warehouses, cron and recent synchronisations, and suggests what to fix when there is a problem.
Updating
Module: SISL Optima → Aktualizacje (Updates) shows the commands when a new version appears. Service: stop it, unpack the new package over the old one (the appsettings.Local.json file stays) and run install-service.ps1 again.
Do you have version 0.3.x copied into app/code? Remove the app/code/Sisl/Optima directory before composer require. The settings stay in the database.
Next step: Configuration →