From 9f0bdc14f492f2c4f56bbc0042b2b8a62e3091e1 Mon Sep 17 00:00:00 2001 From: Denys Sokolov Date: Fri, 26 Jan 2024 15:47:58 +0100 Subject: [PATCH] CC-32215: Resolved the merge conflicts. --- ...nstall-the-marketplace-merchant-feature.md | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/_includes/pbc/all/install-features/202403.0/marketplace/install-the-marketplace-merchant-feature.md b/_includes/pbc/all/install-features/202403.0/marketplace/install-the-marketplace-merchant-feature.md index 2ad8de12ae7..bb974fe870f 100644 --- a/_includes/pbc/all/install-features/202403.0/marketplace/install-the-marketplace-merchant-feature.md +++ b/_includes/pbc/all/install-features/202403.0/marketplace/install-the-marketplace-merchant-feature.md @@ -183,6 +183,7 @@ Enable the following behaviors by registering the plugins: | MerchantUserViewMerchantUpdateFormViewExpanderPlugin | Expands merchant `FormView` with the data for the merchant user tab. | | Spryker\Zed\MerchantUserGui\Communication\Plugin\MerchantGui | | MerchantProductOfferStorageExpanderPlugin | Returns `ProductOfferStorage` transfer object expanded with `Merchant`. | | Spryker\Client\MerchantStorage\Plugin\ProductOfferStorage | | MerchantProductOfferStorageFilterPlugin | Filters `ProductOfferCollection` transfer object by active and approved merchant. | | Spryker\Zed\MerchantStorage\Communication\Plugin\ProductOfferStorage | +| MerchantUserTwigPlugin | Adds 'merchantName' Twig global variable. | | Spryker\Zed\MerchantUser\Communication\Plugin\Twig |
src/Pyz/Zed/Merchant/MerchantDependencyProvider.php @@ -364,6 +365,34 @@ Make sure that, when you retrieve a product offer from storage, you can see the {% endinfo_block %} +```php + + */ + protected function getTwigPlugins(): array + { + return [ + new MerchantUserTwigPlugin(), + ]; + } +} +``` + +{% info_block warningBox "Verification" %} + +Make sure that `merchantName` global Twig variable is available. + +{% endinfo_block %} + #### Optional: Enable the Backend API authentication 1. [Integrate Glue authentication](/docs/scos/dev/migration-concepts/migrate-to-decoupled-glue-infrastructure/decoupled-glue-infrastructure-integrate-the-authentication.html). @@ -411,6 +440,8 @@ class OauthUserConnectorDependencyProvider extends SprykerOauthUserConnectorDepe } ``` + + {% info_block warningBox "Verification" %} 1. Make sure that you can authenticate as a merchant user: