diff --git a/_data/sidebars/pbc_all_sidebar.yml b/_data/sidebars/pbc_all_sidebar.yml index cbc042205e9..274170e742b 100644 --- a/_data/sidebars/pbc_all_sidebar.yml +++ b/_data/sidebars/pbc_all_sidebar.yml @@ -1690,6 +1690,10 @@ entries: url: /docs/pbc/all/offer-management/marketplace/install-and-upgrade/install-features/install-the-marketplace-merchant-portal-product-offer-management-feature.html - title: Marketplace Merchant Portal Product Offer Management + Merchant Portal Order Management - Merchant Portal url: /docs/pbc/all/offer-management/marketplace/install-and-upgrade/install-features/install-the-marketplace-merchant-portal-product-offer-management-merchant-portal-order-management-merchant-portal-feature.html + - title: Marketplace Merchant Portal Product Offer Shipment feature + url: /docs/pbc/all/offer-management/marketplace/install-and-upgrade/install-features/install-the-marketplace-merchant-portal-product-offer-shipment-feature.html + include_versions: + - "202311.0" - title: Marketplace Product Offer + Cart feature url: /docs/pbc/all/offer-management/marketplace/install-and-upgrade/install-features/install-the-marketplace-product-offer-cart-feature.html - title: Marketplace Product Offer + Checkout @@ -1700,14 +1704,7 @@ entries: url: /docs/pbc/all/offer-management/marketplace/install-and-upgrade/install-features/install-the-marketplace-product-offer-marketplace-product-feature.html - title: Marketplace Product Offer + Quick Add to Cart url: /docs/pbc/all/offer-management/marketplace/install-and-upgrade/install-features/install-the-marketplace-product-offer-quick-add-to-cart-feature.html - - title: Marketplace Product Offer + Service Points - url: /docs/pbc/all/offer-management/marketplace/install-and-upgrade/install-the-marketplace-product-offer-service-points-feature.html - include_versions: - - "202311.0" - - title: Marketplace Merchant + Product Offer Service Points Availability - url: /docs/pbc/all/offer-management/marketplace/install-and-upgrade/install-the-marketplace-merchant-product-offer-service-points-availability-feature.html - include_versions: - - "202311.0" + - title: Install Glue API nested: - title: Marketplace Product Offer @@ -1716,6 +1713,7 @@ entries: url: /docs/pbc/all/offer-management/marketplace/install-and-upgrade/install-glue-api/install-the-marketplace-product-offer-cart-glue-api.html - title: Marketplace Product Offer + Wishlist url: /docs/pbc/all/offer-management/marketplace/install-and-upgrade/install-glue-api/install-the-marketplace-product-offer-wishlist-glue-api.html + - title: Upgrade modules nested: - title: MerchantProductOfferDataImport @@ -1773,14 +1771,17 @@ entries: nested: - title: Install features nested: + - title: Marketplace Merchant Portal Product Offer Service Points + url: /docs/pbc/all/offer-management/unified-commerce/install-and-upgrade/install-the-marketplace-merchant-portal-product-offer-service-points-feature.html + - title: Marketplace Merchant + Product Offer Service Points Availability + url: /docs/pbc/all/offer-management/unified-commerce/install-and-upgrade/install-the-marketplace-merchant-product-offer-service-points-availability-feature.html + - title: Marketplace Product Offer + Service Points + url: /docs/pbc/all/offer-management/unified-commerce/install-and-upgrade/install-the-marketplace-product-offer-service-points-feature.html - title: Product Offer Shipment url: /docs/pbc/all/offer-management/unified-commerce/install-and-upgrade/install-the-product-offer-shipment-feature.html - include_versions: - - "202311.0" - title: Product Offer Service Points url: /docs/pbc/all/offer-management/unified-commerce/install-and-upgrade/install-the-product-offer-service-points-feature.html - include_versions: - - "202311.0" + - title: Order Management System url: /docs/pbc/all/order-management-system/order-management-system.html nested: diff --git a/_includes/pbc/all/install-features/202311.0/install-the-product-offer-service-points-feature.md b/_includes/pbc/all/install-features/202311.0/install-the-product-offer-service-points-feature.md index b245a4e1da3..fc32e03eb34 100644 --- a/_includes/pbc/all/install-features/202311.0/install-the-product-offer-service-points-feature.md +++ b/_includes/pbc/all/install-features/202311.0/install-the-product-offer-service-points-feature.md @@ -4,7 +4,7 @@ This document describes how to install the Product Offer + Service Points featur ## Install feature core -Follow the steps below to install the Service Points feature core. +Follow the steps below to install the Product Offer + Service Points feature core. ### Prerequisites @@ -29,6 +29,7 @@ Make sure that the following modules have been installed: |------------------------------------|--------------------------------------------------------| | ProductOfferServicePoint | vendor/spryker/product-offer-service-point | | ProductOfferServicePointDataImport | vendor/spryker/product-offer-service-point-data-import | +| ProductOfferServicePointGui | vendor/spryker/product-offer-service-point-gui | | ProductOfferServicePointStorage | vendor/spryker/product-offer-service-point-storage | {% endinfo_block %} @@ -398,7 +399,7 @@ class PublisherDependencyProvider extends SprykerPublisherDependencyProvider new ProductOfferServicePublisherTriggerPlugin(), ]; } - + /** * @return list<\Spryker\Zed\PublisherExtension\Dependency\Plugin\PublisherPluginInterface> */ @@ -481,12 +482,13 @@ Make sure that, in Redis, data is displayed in the following format: To expand product offers with services, register the plugins: -| PLUGIN | SPECIFICATION | PREREQUISITES | NAMESPACE | -|------------------------------------------|---------------------------------------------------------------------|---------------|---------------------------------------------------------------------------| -| ServiceProductOfferPostCreatePlugin | Creates the product offer service entities. | | Spryker\Zed\ProductOfferServicePoint\Communication\Plugin\ProductOffer | -| ServiceProductOfferPostUpdatePlugin | Updates the product offer service entities. | | Spryker\Zed\ProductOfferServicePoint\Communication\Plugin\ProductOffer | -| ServiceProductOfferExpanderPlugin | Expands product offer with services. | | Spryker\Zed\ProductOfferServicePoint\Communication\Plugin\ProductOffer | -| ServiceProductOfferStorageExpanderPlugin | Expands product offer storage transfers with services from storage. | | Spryker\Client\ProductOfferServicePointStorage\Plugin\ProductOfferStorage | +| PLUGIN | SPECIFICATION | PREREQUISITES | NAMESPACE | +|------------------------------------------|-------------------------------------------------------------------------|---------------|------------------------------------------------------------------------------| +| ServiceProductOfferPostCreatePlugin | Creates the product offer service entities. | | Spryker\Zed\ProductOfferServicePoint\Communication\Plugin\ProductOffer | +| ServiceProductOfferPostUpdatePlugin | Updates the product offer service entities. | | Spryker\Zed\ProductOfferServicePoint\Communication\Plugin\ProductOffer | +| ServiceProductOfferExpanderPlugin | Expands product offer transfers with services. | | Spryker\Zed\ProductOfferServicePoint\Communication\Plugin\ProductOffer | +| ServiceProductOfferStorageExpanderPlugin | Expands product offer storage transfers with services from the storage. | | Spryker\Client\ProductOfferServicePointStorage\Plugin\ProductOfferStorage | +| ServiceProductOfferViewSectionPlugin | Expands the product offer view section with services. | | Spryker\Zed\ProductOfferServicePointGui\Communication\Plugin\ProductOfferGui |
src/Pyz/Zed/ProductOffer/ProductOfferDependencyProvider.php @@ -563,3 +565,34 @@ class ProductOfferStorageDependencyProvider extends SprykerProductOfferStorageDe } ``` +**src/Pyz/Zed/ProductOfferGui/ProductOfferGuiDependencyProvider.php** + +```php + + */ + public function getProductOfferViewSectionPlugins(): array + { + return [ + new ServiceProductOfferViewSectionPlugin(), + ]; + } +} +``` + +{% info_block warningBox "Verification" %} + +1. In the Back Office, go to the **Marketplace > Offers**. +2. On the **Offers** page, next to a product offer, click **View**. + This opens the **View Offer: {offer ID}** page. +3. Scroll down the page and make sure the **SERVICES** pane is displayed. + +{% endinfo_block %} diff --git a/_includes/pbc/all/install-features/202311.0/install-the-product-offer-shipment-feature.md b/_includes/pbc/all/install-features/202311.0/install-the-product-offer-shipment-feature.md index 266312e15e4..06c73574203 100644 --- a/_includes/pbc/all/install-features/202311.0/install-the-product-offer-shipment-feature.md +++ b/_includes/pbc/all/install-features/202311.0/install-the-product-offer-shipment-feature.md @@ -31,6 +31,7 @@ Make sure the following modules have been installed: |------------------------------------------|--------------------------------------------------------------| | ProductOfferShipmentType | vendor/spryker/product-offer-shipment-type | | ProductOfferShipmentTypeDataImport | vendor/spryker/product-offer-shipment-type-data-import | +| ProductOfferShipmentTypeGui | vendor/spryker/product-offer-shipment-type-gui | | ProductOfferShipmentTypeStorage | vendor/spryker/product-offer-shipment-type-storage | | ProductOfferShipmentTypeStorageExtension | vendor/spryker/product-offer-shipment-type-storage-extension | @@ -464,13 +465,14 @@ console data:import glossary Enable the following plugins: -| PLUGIN | SPECIFICATION | PREREQUISITES | NAMESPACE | -|-----------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------|---------------|--------------------------------------------------------------------------------------| -| ShipmentTypeProductOfferPostCreatePlugin | Persists product offer shipment type to persistence. | | Spryker\Zed\ProductOfferShipmentType\Communication\Plugins\ProductOffer | -| ShipmentTypeProductOfferPostUpdatePlugin | Deletes redundant product offer shipment types from persistence. Persists missed product offer shipment types to persistence. | | Spryker\Zed\ProductOfferShipmentType\Communication\Plugins\ProductOffer | -| ShipmentTypeProductOfferExpanderPlugin | Expands `ProductOfferTransfer` with related shipment types. | | Spryker\Zed\ProductOfferShipmentType\Communication\Plugins\ProductOffer | -| ShipmentTypeProductOfferStorageExpanderPlugin | Expands `ProductOfferStorageTransfer` with shipment type storage data. | | Spryker\Zed\ProductOfferShipmentTypeStorage\Communication\Plugin\ProductOfferStorage | -| ShipmentTypeProductOfferAvailableShipmentTypeFilterPlugin | Filters out shipment types without the product offer shipment type relation. | | Spryker\Client\ClickAndCollectExample\Plugin\ShipmentTypeStorage | +| PLUGIN | SPECIFICATION | PREREQUISITES | NAMESPACE | +|-----------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------|---------------|--------------------------------------------------------------------------------------| +| ShipmentTypeProductOfferPostCreatePlugin | Persists the product offer shipment type to persistence. | | Spryker\Zed\ProductOfferShipmentType\Communication\Plugins\ProductOffer | +| ShipmentTypeProductOfferPostUpdatePlugin | Deletes redundant product offer shipment types from persistence. Persists missed product offer shipment types to persistence. | | Spryker\Zed\ProductOfferShipmentType\Communication\Plugins\ProductOffer | +| ShipmentTypeProductOfferExpanderPlugin | Expands `ProductOfferTransfer` with related shipment types. | | Spryker\Zed\ProductOfferShipmentType\Communication\Plugins\ProductOffer | +| ShipmentTypeProductOfferStorageExpanderPlugin | Expands `ProductOfferStorageTransfer` with shipment type storage data. | | Spryker\Zed\ProductOfferShipmentTypeStorage\Communication\Plugin\ProductOfferStorage | +| ShipmentTypeProductOfferAvailableShipmentTypeFilterPlugin | Filters out shipment types without the product offer shipment type relation. | | Spryker\Client\ClickAndCollectExample\Plugin\ShipmentTypeStorage | +| ShipmentTypeProductOfferViewSectionPlugin | Expands the product offer view section with shipment types. | | Spryker\Zed\ProductOfferShipmentTypeGui\Communication\Plugin\ProductOfferGui |
src/Pyz/Zed/ProductOffer/ProductOfferDependencyProvider.php @@ -567,3 +569,36 @@ class ShipmentTypeStorageDependencyProvider extends SprykerShipmentTypeStorageDe } } ``` + +**src/Pyz/Zed/ProductOfferGui/ProductOfferGuiDependencyProvider.php** + +```php + + */ + public function getProductOfferViewSectionPlugins(): array + { + return [ + new ServiceProductOfferViewSectionPlugin(), + ]; + } +} +``` + +{% info_block warningBox "Verification" %} + +1. In the Back Office, go to the **Marketplace > Offers**. +2. On the **Offers** page, next to a product offer, click **View**. + This opens the **View Offer: {offer ID}** page. +3. Scroll down the page and make sure the **SHIPMENT TYPES** pane is displayed. + + +{% endinfo_block %} diff --git a/_includes/pbc/all/install-features/202311.0/install-the-service-points-feature.md b/_includes/pbc/all/install-features/202311.0/install-the-service-points-feature.md index 373cca9c412..7701e54f914 100644 --- a/_includes/pbc/all/install-features/202311.0/install-the-service-points-feature.md +++ b/_includes/pbc/all/install-features/202311.0/install-the-service-points-feature.md @@ -151,6 +151,7 @@ Make sure the following changes have been applied in transfer objects: | ServicePointCollectionResponse | class | created | src/Generated/Shared/Transfer/ServicePointCollectionResponseTransfer | | ServicePointCriteria | class | created | src/Generated/Shared/Transfer/ServicePointCriteriaTransfer | | ServicePointConditions | class | created | src/Generated/Shared/Transfer/ServicePointConditionsTransfer | +| ServicePointSearchConditions | class | created | src/Generated/Shared/Transfer/ServicePointSearchConditions | | ServicePointsBackendApiAttributes | class | created | src/Generated/Shared/Transfer/ServicePointsBackendApiAttributesTransfer | | ServiceTypesBackendApiAttributes | class | created | src/Generated/Shared/Transfer/ServiceTypesBackendApiAttributesTransfer | | ServicesBackendApiAttributes | class | created | src/Generated/Shared/Transfer/ServicesBackendApiAttributesTransfer | diff --git a/_includes/pbc/all/install-features/202311.0/marketplace/install-the-marketplace-merchant-portal-product-offer-management-feature.md b/_includes/pbc/all/install-features/202311.0/marketplace/install-the-marketplace-merchant-portal-product-offer-management-feature.md index fafac0bcc77..145c7c53138 100644 --- a/_includes/pbc/all/install-features/202311.0/marketplace/install-the-marketplace-merchant-portal-product-offer-management-feature.md +++ b/_includes/pbc/all/install-features/202311.0/marketplace/install-the-marketplace-merchant-portal-product-offer-management-feature.md @@ -8,13 +8,13 @@ Install the required features: | NAME | VERSION | INSTALLATION GUIDE | | --------------- | --------- | ------------| -| Marketplace Product Offer | {{page.version}} | [Install the Marketplace Product Offer feature](/docs/pbc/all/offer-management/{{page.version}}/marketplace/install-and-upgrade/install-features/install-the-marketplace-product-offer-feature.html) -| Marketplace Merchant Portal Core | {{page.version}} | [Merchant Portal Core feature integration](/docs/pbc/all/merchant-management/{{page.version}}/marketplace/install-and-upgrade/install-features/install-the-marketplace-merchant-portal-core-feature.html) +| Marketplace Product Offer | {{page.version}} | [Install the Marketplace Product Offer feature](/docs/pbc/all/offer-management/{{page.version}}/marketplace/install-and-upgrade/install-features/install-the-marketplace-product-offer-feature.html) | +| Marketplace Merchant Portal Core | {{page.version}} | [Install the Merchant Portal Core feature](/docs/pbc/all/merchant-management/{{page.version}}/marketplace/install-and-upgrade/install-features/install-the-marketplace-merchant-portal-core-feature.html) | -### 1) Install the required modules using Composer +## 1) Install the required modules -Install the required modules: +Install the required modules using Composer: ```bash composer require spryker-feature/marketplace-merchant-portal-product-offer-management:"{{page.version}}" --update-with-dependencies @@ -22,7 +22,7 @@ composer require spryker-feature/marketplace-merchant-portal-product-offer-manag {% info_block warningBox "Verification" %} -Make sure that the following modules have been installed: +Make sure the following modules have been installed: | MODULE | EXPECTED DIRECTORY | | ------------- | --------------- | @@ -31,7 +31,7 @@ Make sure that the following modules have been installed: {% endinfo_block %} -### 2) Set up transfer objects +## 2) Set up transfer objects Generate transfer changes: @@ -41,7 +41,7 @@ console transfer:generate {% info_block warningBox "Verification" %} -Make sure that the following changes have been applied in transfer objects: +Make sure the following changes have been applied in transfer objects: | TRANSFER | TYPE | EVENT | PATH | | ------------- | ---- | ------ |---------------- | @@ -63,27 +63,27 @@ Make sure that the following changes have been applied in transfer objects: | ProductOfferTableCriteria | class | Created | src/Generated/Shared/Transfer/ProductOfferTableCriteriaTransfer | | ProductTableCriteria | class | Created | src/Generated/Shared/Transfer/ProductTableCriteriaTransfer | | Item.merchantSku | property | Created | src/Generated/Shared/Transfer/ItemTransfer | +| ProductOfferFormViewCollection | class | Created | src/Generated/Shared/Transfer/ProductOfferFormViewCollection | +| ProductOfferFormView | class | Created | src/Generated/Shared/Transfer/ProductOfferFormView | {% endinfo_block %} -### 3) Add translations +## 3) Add translations -Generate a new translation cache for Zed: +Generate translation cache for Zed: ```bash console translator:generate-cache ``` -### 4) Set up behavior - -To set up behavior: +## 4) Set up behavior 1. Enable the following behaviors by registering the plugins: | PLUGIN | SPECIFICATION | PREREQUISITES | NAMESPACE | | ---------------- | ------------- | --------- | ---------------- | -| OffersMerchantDashboardCardPlugin | Adds Product Offers card to `MerchantDashobard`. | | Spryker\Zed\ProductOfferMerchantPortalGui\Communication\Plugin\DashboardMerchantPortalGui | +| OffersMerchantDashboardCardPlugin | Adds the **Offers** pane to the **Dashboard** page. | | Spryker\Zed\ProductOfferMerchantPortalGui\Communication\Plugin\DashboardMerchantPortalGui | **src/Pyz/Zed/DashboardMerchantPortalGui/DashboardMerchantPortalGuiDependencyProvider.php** @@ -110,15 +110,13 @@ class DashboardMerchantPortalGuiDependencyProvider extends SprykerDashboardMerch {% info_block warningBox "Verification" %} -Make sure that the `OffersMerchantDashboardCardPlugin` plugin is set up by opening `http://mp.mysprykershop.com/dashboard-portal-gui`. The Product Offers card should be presented on the page. +In the Merchant Portal, go to **Dashboard**. On the **Dashboard** page, make sure the **Offers** pane is displayed. {% endinfo_block %} ## Install related features -Integrate the following related features: - | FEATURE | REQUIRED FOR THE CURRENT FEATURE |INTEGRATION GUIDE | | --- | --- | --- | | Merchant Portal - Marketplace Merchant Portal Product Offer Management + Merchant Portal Order Management | |[Install the Merchant Portal - Marketplace Merchant Portal Product Offer Management + Marketplace Order Management feature](/docs/marketplace/dev/feature-integration-guides/{{page.version}}/merchant-portal-marketplace-merchant-portal-product-offer-management-merchant-portal-order-management-feature-integration.html) | diff --git a/_includes/pbc/all/install-features/202311.0/marketplace/install-the-marketplace-merchant-portal-product-offer-service-points-feature.md b/_includes/pbc/all/install-features/202311.0/marketplace/install-the-marketplace-merchant-portal-product-offer-service-points-feature.md new file mode 100644 index 00000000000..4322f8e9ce1 --- /dev/null +++ b/_includes/pbc/all/install-features/202311.0/marketplace/install-the-marketplace-merchant-portal-product-offer-service-points-feature.md @@ -0,0 +1,180 @@ + + +This document describes how to install the Marketplace Merchant Portal Product Offer Service Points feature. + +## Prerequisites + +Install the required features: + +| NAME | VERSION | INSTALLATION GUIDE | +|------------------------------|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Marketplace Merchant Portal Core | {{page.version}} | [Install the Merchant Portal Core feature](/docs/pbc/all/merchant-management/{{page.version}}/marketplace/install-and-upgrade/install-the-marketplace-merchant-portal-core-feature.html) | +| Marketplace Merchant Portal Product Offer Management | {{page.version}} | [Install the Marketplace Product Offer feature](/docs/pbc/all/offer-management/{{page.version}}/marketplace/install-and-upgrade/install-the-marketplace-merchant-portal-product-offer-management-feature.html) | +| Marketplace Product Offer + Service Points | {{page.version}} | [Install the Marketplace Product Offer + Service Points feature](/docs/pbc/all/offer-management/{{page.version}}/marketplace/install-and-upgrade/install-the-marketplace-product-offer-service-points-feature.html) | + +## 1) Install the required modules + +Install the required modules using Composer: + +```bash +composer require spryker/product-offer-service-point-merchant-portal-gui:"{{page.version}}" --update-with-dependencies +``` + +{% info_block warningBox "Verification" %} + +Make sure the following modules have been installed: + +| MODULE | EXPECTED DIRECTORY | +|-|-| +| ProductOfferServicePointMerchantPortalGui | spryker/product-offer-service-point-merchant-portal-gui | + +{% endinfo_block %} + +## 2) Set up configuration + +Deny Back Office access for Back Office users to the ProductOfferServicePointMerchantPortalGui module. + +**src/Pyz/Zed/Acl/AclConfig.php** + +```php +> + */ + public function getInstallerRules(): array + { + $installerRules = parent::getInstallerRules(); + $installerRules = $this->addMerchantPortalInstallerRules($installerRules); + + return $installerRules; + } + + /** + * @param array> $installerRules + * + * @return array> + */ + protected function addMerchantPortalInstallerRules(array $installerRules): array + { + $bundleNames = [ + 'product-offer-service-point-merchant-portal-gui', + ]; + + foreach ($bundleNames as $bundleName) { + $installerRules[] = [ + 'bundle' => $bundleName, + 'controller' => AclConstants::VALIDATOR_WILDCARD, + 'action' => AclConstants::VALIDATOR_WILDCARD, + 'type' => static::RULE_TYPE_DENY, + 'role' => AclConstants::ROOT_ROLE, + ]; + } + return $installerRules; + } +} +``` + +## 3) Set up behavior + +Enable the following behaviors by registering the plugins: + +| PLUGIN | DESCRIPTION | PREREQUISITES | NAMESPACE | +|------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------|---------------|----------------------------------------------------------------------------------------------------------| +| ServiceProductOfferFormExpanderPlugin | Expands `ProductOfferForm` with `Service points` and `Services` fields. | | Spryker\Zed\ProductOfferServicePointMerchantPortalGui\Communication\Plugin\ProductOfferMerchantPortalGui | +| ServiceProductOfferFormViewExpanderPlugin | Expands the `ProductOfferForm` Twig template with the `Services` form section. | | Spryker\Zed\ProductOfferServicePointMerchantPortalGui\Communication\Plugin\ProductOfferMerchantPortalGui | +| ProductOfferServicePointMerchantPortalGuiMerchantAclRuleExpanderPlugin | Adds `product-offer-service-point-merchant-portal-gui` to the list of `AclRules`. | | Spryker\Zed\ProductOfferServicePointMerchantPortalGui\Communication\Plugin\AclMerchantPortal | +| ServiceAclEntityConfigurationExpanderPlugin | Expands a provided `AclEntityMetadataConfig` transfer object with service point composite data. | | Spryker\Zed\ServicePoint\Communication\Plugin\AclMerchantPortal | +| ProductOfferServicePointAclEntityConfigurationExpanderPlugin | Expands a provided `AclEntityMetadataConfig` transfer object with product offer service point composite data. | | Spryker\Zed\ProductOfferServicePoint\Communication\Plugin\AclMerchantPortal | + +**src/Pyz/Zed/ProductOfferMerchantPortalGui/ProductOfferMerchantPortalGuiDependencyProvider.php** + +```php + + */ + protected function getProductOfferFormExpanderPlugins(): array + { + return [ + new ServiceProductOfferFormExpanderPlugin(), + ]; + } + + /** + * @return list<\Spryker\Zed\ProductOfferMerchantPortalGuiExtension\Dependency\Plugin\ProductOfferFormViewExpanderPluginInterface> + */ + protected function getProductOfferFormViewExpanderPlugins(): array + { + return [ + new ServiceProductOfferFormViewExpanderPlugin(), + ]; + } +} +``` + +**src/Pyz/Zed/AclMerchantPortal/AclMerchantPortalDependencyProvider.php** + +```php + + */ + protected function getMerchantAclRuleExpanderPlugins(): array + { + return [ + new ProductOfferServicePointMerchantPortalGuiMerchantAclRuleExpanderPlugin(), + ]; + } + + /** + * @return list<\Spryker\Zed\AclMerchantPortalExtension\Dependency\Plugin\AclEntityConfigurationExpanderPluginInterface> + */ + protected function getAclEntityConfigurationExpanderPlugins(): array + { + return [ + new ServiceAclEntityConfigurationExpanderPlugin(), + new ProductOfferServicePointAclEntityConfigurationExpanderPlugin(), + ]; + } +} +``` + +{% info_block warningBox "Verification" %} + +When creating and editing product offers in the Merchant Portal, make sure the following applies: + +* **SERVICE POINT** and **SERVICES** fields are displayed. +* For **SERVICE POINT**, you can search by service points. +* After selecting a service point, you can select services in the **SERVICES** drop-down menu. +* After adding services, you can save the product offer. + + + +{% endinfo_block %} diff --git a/_includes/pbc/all/install-features/202311.0/marketplace/install-the-marketplace-merchant-portal-product-offer-shipment-feature.md b/_includes/pbc/all/install-features/202311.0/marketplace/install-the-marketplace-merchant-portal-product-offer-shipment-feature.md new file mode 100644 index 00000000000..20eedff1c85 --- /dev/null +++ b/_includes/pbc/all/install-features/202311.0/marketplace/install-the-marketplace-merchant-portal-product-offer-shipment-feature.md @@ -0,0 +1,117 @@ + + +This document describes how to install the Marketplace Merchant Portal Product Offer Shipment feature. + +## Prerequisites + +Install the required features: + +| NAME | VERSION | INTEGRATION GUIDE | +|------------------------------|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Marketplace Merchant Portal Core | {{page.version}} | [Install the Merchant Portal Core feature](/docs/pbc/all/merchant-management/{{page.version}}/marketplace/install-and-upgrade/install-the-marketplace-merchant-portal-core-feature.html) | +| Marketplace Merchant Portal Product Offer Management | {{page.version}} | [Install the Marketplace Product Offer feature](/docs/pbc/all/offer-management/{{page.version}}/marketplace/install-and-upgrade/install-the-marketplace-merchant-portal-product-offer-management-feature.html) | +| Product Offer Shipment | {{page.version}} | [Install the Product Offer Shipment feature](/docs/pbc/all/offer-management/{{page.version}}/unified-commerce/install-and-upgrade/install-the-product-offer-shipment-feature.html) | + +## 1) Install the required modules + +Install the required modules using Composer: + +```bash +composer require spryker/product-offer-shipment-type-merchant-portal-gui:"{{page.version}}" --update-with-dependencies +``` + +{% info_block warningBox "Verification" %} + +Make sure the following modules have been installed: + +| MODULE | EXPECTED DIRECTORY | +|-|-| +| ProductOfferShipmentTypeMerchantPortalGui | spryker/product-offer-shipment-type-merchant-portal-gui | + +{% endinfo_block %} + +## 2) Set up behavior + +Enable the following behaviors by registering the plugins: + +| PLUGIN | DESCRIPTION | PREREQUISITES | NAMESPACE | +|------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------|---------------|----------------------------------------------------------------------------------------------------------| +| ShipmentTypeProductOfferFormExpanderPlugin | Expands `ProductOfferForm` with a `shipment-type` form field. | | Spryker\Zed\ProductOfferServicePointMerchantPortalGui\Communication\Plugin\ProductOfferMerchantPortalGui | +| ShipmentTypeProductOfferFormViewExpanderPlugin | Expands the `ProductOfferForm` Twig template with a `shipment-type` form section. | | Spryker\Zed\ProductOfferServicePointMerchantPortalGui\Communication\Plugin\ProductOfferMerchantPortalGui | +| ShipmentTypeAclEntityConfigurationExpanderPlugin | Expands a provided `AclEntityMetadataConfig` transfer object with shipment type composite data. | | Spryker\Zed\ShipmentType\Communication\Plugin\AclMerchantPortal | +| ProductOfferShipmentTypeAclEntityConfigurationExpanderPlugin | Expands a provided `AclEntityMetadataConfig` transfer object with product offer shipment type composite data. | | Spryker\Zed\ProductOfferShipmentType\Communication\Plugin\AclMerchantPortal | + +**src/Pyz/Zed/ProductOfferMerchantPortalGui/ProductOfferMerchantPortalGuiDependencyProvider.php** + +```php + + */ + protected function getProductOfferFormExpanderPlugins(): array + { + return [ + new ShipmentTypeProductOfferFormExpanderPlugin(), + ]; + } + + /** + * @return list<\Spryker\Zed\ProductOfferMerchantPortalGuiExtension\Dependency\Plugin\ProductOfferFormViewExpanderPluginInterface> + */ + protected function getProductOfferFormViewExpanderPlugins(): array + { + return [ + new ShipmentTypeProductOfferFormViewExpanderPlugin(), + ]; + } +} +``` + +**src/Pyz/Zed/AclMerchantPortal/AclMerchantPortalDependencyProvider.php** + +```php + + */ + protected function getAclEntityConfigurationExpanderPlugins(): array + { + return [ + new ShipmentTypeAclEntityConfigurationExpanderPlugin(), + new ProductOfferShipmentTypeAclEntityConfigurationExpanderPlugin(), + ]; + } +} +``` + +{% info_block warningBox "Verification" %} + +When creating and editing product offers in the Merchant Portal, make sure the following applies: + + +1. The **Shipment Types** pane is displayed. +2. All the shipment types in the system are available in the drop-down menu. +3. You can save the product offer after selecting shipment types. + + + + +{% endinfo_block %} diff --git a/docs/pbc/all/offer-management/202311.0/marketplace/install-and-upgrade/install-features/install-the-marketplace-merchant-portal-product-offer-shipment-feature.md b/docs/pbc/all/offer-management/202311.0/marketplace/install-and-upgrade/install-features/install-the-marketplace-merchant-portal-product-offer-shipment-feature.md new file mode 100644 index 00000000000..8c26d732ec2 --- /dev/null +++ b/docs/pbc/all/offer-management/202311.0/marketplace/install-and-upgrade/install-features/install-the-marketplace-merchant-portal-product-offer-shipment-feature.md @@ -0,0 +1,8 @@ +--- +title: Install the Marketplace Merchant Portal Product Offer Shipment feature +last_updated: Sep 16, 2023 +description: This integration guide provides steps on how to integrate the Marketplace Merchant Portal Product Offer Shipment feature into a Spryker project. +template: feature-integration-guide-template +--- + +{% include pbc/all/install-features/{{page.version}}/marketplace/install-the-marketplace-merchant-portal-product-offer-shipment-feature.md %} diff --git a/docs/pbc/all/offer-management/202311.0/unified-commerce/install-and-upgrade/install-features/install-the-marketplace-merchant-portal-product-offer-service-points-feature.md b/docs/pbc/all/offer-management/202311.0/unified-commerce/install-and-upgrade/install-features/install-the-marketplace-merchant-portal-product-offer-service-points-feature.md new file mode 100644 index 00000000000..13e0898eee1 --- /dev/null +++ b/docs/pbc/all/offer-management/202311.0/unified-commerce/install-and-upgrade/install-features/install-the-marketplace-merchant-portal-product-offer-service-points-feature.md @@ -0,0 +1,8 @@ +--- +title: Install the Marketplace Merchant Portal Product Offer Service Points feature +last_updated: Sep 16, 2023 +description: This integration guide provides steps on how to integrate the Marketplace Merchant Portal Product Offer Service Points feature into a Spryker project. +template: feature-integration-guide-template +--- + +{% include pbc/all/install-features/{{page.version}}/marketplace/install-the-marketplace-merchant-portal-product-offer-service-points-feature.md %} diff --git a/docs/pbc/all/offer-management/202311.0/unified-commerce/install-and-upgrade/install-features/install-the-marketplace-merchant-product-offer-service-points-availability-feature.md b/docs/pbc/all/offer-management/202311.0/unified-commerce/install-and-upgrade/install-features/install-the-marketplace-merchant-product-offer-service-points-availability-feature.md new file mode 100644 index 00000000000..273e37a5877 --- /dev/null +++ b/docs/pbc/all/offer-management/202311.0/unified-commerce/install-and-upgrade/install-features/install-the-marketplace-merchant-product-offer-service-points-availability-feature.md @@ -0,0 +1,10 @@ +--- +title: Install the Marketplace Merchant + Product Offer Service Points Availability feature +description: Install the Marketplace Merchant + Product Offer Service Points Availability feature +last_updated: Sep 21, 2023 +template: feature-integration-guide-template +redirect_from: +- /docs/pbc/all/offer-management/202311.0/marketplace/install-and-upgrade/install-the-marketplace-merchant-product-offer-service-points-availability-feature.html +--- + +{% include pbc/all/install-features/{{page.version}}/marketplace/install-the-marketplace-merchant-product-offer-service-points-availability-feature.md %} diff --git a/docs/pbc/all/offer-management/202311.0/unified-commerce/install-and-upgrade/install-features/install-the-marketplace-product-offer-service-points-feature.md b/docs/pbc/all/offer-management/202311.0/unified-commerce/install-and-upgrade/install-features/install-the-marketplace-product-offer-service-points-feature.md new file mode 100644 index 00000000000..ad4b8fc45f0 --- /dev/null +++ b/docs/pbc/all/offer-management/202311.0/unified-commerce/install-and-upgrade/install-features/install-the-marketplace-product-offer-service-points-feature.md @@ -0,0 +1,10 @@ +--- +title: Install the Marketplace Product Offer + Service Points feature +description: Install the Marketplace Product Offer + Service Points feature +last_updated: July 05, 2023 +template: feature-integration-guide-template +redirect_from: + - /docs/pbc/all/offer-management/202311.0/marketplace/install-and-upgrade/install-the-marketplace-product-offer-service-points-feature.html +--- + +{% include pbc/all/install-features/202311.0/marketplace/install-the-marketplace-product-offer-service-points-feature.md %} diff --git a/docs/pbc/all/offer-management/202311.0/unified-commerce/install-and-upgrade/install-the-product-offer-service-points-feature.md b/docs/pbc/all/offer-management/202311.0/unified-commerce/install-and-upgrade/install-features/install-the-product-offer-service-points-feature.md similarity index 100% rename from docs/pbc/all/offer-management/202311.0/unified-commerce/install-and-upgrade/install-the-product-offer-service-points-feature.md rename to docs/pbc/all/offer-management/202311.0/unified-commerce/install-and-upgrade/install-features/install-the-product-offer-service-points-feature.md diff --git a/docs/pbc/all/offer-management/202311.0/unified-commerce/install-and-upgrade/install-the-product-offer-shipment-feature.md b/docs/pbc/all/offer-management/202311.0/unified-commerce/install-and-upgrade/install-features/install-the-product-offer-shipment-feature.md similarity index 100% rename from docs/pbc/all/offer-management/202311.0/unified-commerce/install-and-upgrade/install-the-product-offer-shipment-feature.md rename to docs/pbc/all/offer-management/202311.0/unified-commerce/install-and-upgrade/install-features/install-the-product-offer-shipment-feature.md diff --git a/docs/scos/user/intro-to-spryker/docs-updates.md b/docs/scos/user/intro-to-spryker/docs-updates.md index b29724f9b80..27b360aeda6 100644 --- a/docs/scos/user/intro-to-spryker/docs-updates.md +++ b/docs/scos/user/intro-to-spryker/docs-updates.md @@ -137,7 +137,6 @@ In August 2023, we have added and updated the following pages: ### Updated pages - [Minimum allowed shop version](/docs/scos/dev/guidelines/keeping-a-project-upgradable/upgradability-guidelines/minimum-allowed-shop-version.html): Learn how to resolve issues with project upgradability when your projects contains old package dependencies that are already not supported. -- [Install the Product Offer Shipment feature](/docs/pbc/all/offer-management/202311.0/unified-commerce/install-and-upgrade/install-the-product-offer-shipment-feature.html). - [Shipment + Service Points feature integration guide](/docs/pbc/all/carrier-management/202311.0/unified-commerce/install-and-upgrade/install-the-shipment-service-points-feature.html). - [Product Rating and Reviews feature integration guide](/docs/pbc/all/ratings-reviews/202307.0/install-and-upgrade/install-the-product-rating-and-reviews-feature.html). - [Install the Shipment feature](/docs/pbc/all/carrier-management/202311.0/base-shop/install-and-upgrade/install-features/install-the-shipment-feature.html). @@ -214,7 +213,7 @@ In June 2023, we have added and updated the following pages: - [Warehouse User Management feature integration guide](/docs/pbc/all/warehouse-management-system/202311.0/unified-commerce/install-and-upgrade/install-the-warehouse-user-management-feature.html). - [Warehouse picking feature integration guide](/docs/pbc/all/warehouse-management-system/202311.0/unified-commerce/install-and-upgrade/install-the-warehouse-picking-feature.html). - [Push notification feature integration guide](/docs/pbc/all/miscellaneous/202311.0/install-and-upgrade/install-features/install-the-push-notification-feature.html). -- [Install the Product Offer Shipment feature](/docs/pbc/all/offer-management/202311.0/unified-commerce/install-and-upgrade/install-the-product-offer-shipment-feature.html). +- [Install the Product Offer Shipment feature](/docs/pbc/all/offer-management/202311.0/unified-commerce/install-and-upgrade/install-features/install-the-product-offer-shipment-feature.html). - [Service Points feature integration guide](/docs/pbc/all/service-points/202311.0/unified-commerce/install-the-service-points-feature.html). - [Additional logic in dependency provider](/docs/scos/dev/guidelines/keeping-a-project-upgradable/upgradability-guidelines/additional-logic-in-dependency-provider.html): Resolve issues with additional logic in dependency provider. - [Dead code checker](/docs/scos/dev/guidelines/keeping-a-project-upgradable/upgradability-guidelines/dead-code-checker.html): Check if there is dead code that extends core classes in your project.