diff --git a/_includes/pbc/all/install-features/202407.0/install-the-order-management-feature.md b/_includes/pbc/all/install-features/202407.0/install-the-order-management-feature.md index 00c46502c76..3fe93cb4dd1 100644 --- a/_includes/pbc/all/install-features/202407.0/install-the-order-management-feature.md +++ b/_includes/pbc/all/install-features/202407.0/install-the-order-management-feature.md @@ -12,6 +12,7 @@ The following feature integration guide expects the basic feature to be in place - Invoice generation - Custom order reference - Sales Orders Backend API +- Order Matrix {% endinfo_block %} @@ -47,6 +48,8 @@ Make sure that the following modules have been installed: | OrderCustomReferenceGui | vendor/spryker/order-custom-reference-gui | | SalesOrdersBackendApi | vendor/spryker/sales-orders-backend-api | | SalesOrdersBackendApiExtension | vendor/spryker/sales-orders-backend-api-extension | +| OrderMatrix | vendor/spryker/order-matrix | +| OrderMatrixGui | vendor/spryker/order-matrix-gui | {% endinfo_block %} @@ -96,6 +99,12 @@ Make sure the following changes have been applied in transfer objects: | QuoteUpdateRequestAttributes.orderCustomReference | property | created | src/Generated/Shared/Transfer/QuoteUpdateRequestAttributesTransfer | | Order.orderCustomReference | property | created | src/Generated/Shared/Transfer/OrderTransfer | | Item.uuid | property | created | src/Generated/Shared/Transfer/ItemTransfer | +| OrderMatrix | class | created | src/Generated/Shared/Transfer/OrderMatrixTransfer | +| OrderMatrixCriteria | class | created | src/Generated/Shared/Transfer/OrderMatrixCriteriaTransfer | +| OrderMatrixRequest | class | created | src/Generated/Shared/Transfer/OrderMatrixRequestTransfer | +| IndexedOrderMatrixResponse | class | created | src/Generated/Shared/Transfer/IndexedOrderMatrixResponseTransfer | +| OrderMatrixConditions | class | created | src/Generated/Shared/Transfer/OrderMatrixConditionsTransfer | +| OrderMatrixCollection | class | created | src/Generated/Shared/Transfer/OrderMatrixCollectionTransfer | {% endinfo_block %} @@ -614,6 +623,29 @@ You will be able to verify the invoice template configuration in a later step. {% endinfo_block %} +3. Adjust the scheduler configuration: + +**config/Zed/cronjobs/jenkins.php** + +```php +/* Order matrix sync */ +$jobs[] = [ + 'name' => 'sync-order-matrix', + 'command' => '$PHP_BIN vendor/bin/console order-matrix:sync', + 'schedule' => '*/1 * * * *', + 'enable' => true, + 'global' => true, +]; +``` + +4. Apply the scheduler configuration update: + +```bash +vendor/bin/console scheduler:suspend +vendor/bin/console scheduler:setup +vendor/bin/console scheduler:resume +``` + ### 4) Add translations @@ -1205,6 +1237,83 @@ Make sure that, on the following Storefront pages, even if the `display` propert {% endinfo_block %} +Follow the steps below to install the Order Matrix functionality. + +#### Set up Order Matrix behavior. + + +| PLUGIN | SPECIFICATION | PREREQUISITES | NAMESPACE | +|--------------------|----------------------------------------------------------------------|---------------|------------------------------------------------| +| OrderMatrixConsole | A console command writes whole order matrix statistics to a storage. | | Spryker\Zed\OrderMatrix\Communication\Console | + +**src/Pyz/Zed/Console/ConsoleDependencyProvider.php** + +```php + + */ + protected function getConsoleCommands(Container $container): array + { + return [ + new OrderMatrixConsole(), + ]; + } +} +``` + +#### Configure navigation + +1. Adjust the order matrix page in `navigation.xml`: + +**config/Zed/navigation.xml** + +```xml + + + + + /sales + Sales + fa-shopping-cart + + + + Order Matrix + sales + order-matrix-gui + matrix + index + 1 + + + + +``` + +2. Build the navigation cache: + +```bash +console navigation:build-cache +``` + +{% info_block warningBox "Verification" %} + +In the Back Office, make sure you can go to **Sales > Order Matrix**. + +{% endinfo_block %} + ## Install feature frontend Follow the steps below to install the Order Management feature frontend.