Description
This module is used alongside valantic-spryker/sitemap
Sitemap module to extend the sitemap with merchant URLs from recently created Spryker marketplace.
composer require valantic-spryker/sitemap-merchant-connector
- Since this is under ValanticSpryker namespace, make sure that in
config_default
:$config[KernelConstants::CORE_NAMESPACES]
has the namespace$config[KernelConstants::PROJECT_NAMESPACES]
has the namespace
- Add
MerchantSitemapCreatorPlugin
to\ValanticSpryker\Zed\Sitemap\SitemapDependencyProvider::getSitemapCreatorPluginStack
- Add
\ValanticSpryker\Shared\SitemapMerchantConnector\MerchantSitemapConnectorConstants::RESOURCE_TYPE
to\ValanticSpryker\Yves\Sitemap\SitemapDependencyProvider::getAvailableSitemapRouteResources
- Now the Sitemap will include published URLs of merchants.
Tests do not work without Spryker environment, since Spryker helpers are used. To run tests, execute following command in root Spryker directory:
codecept run -c vendor/valantic-spryker/merchant-sitemap-connector/tests/ValanticSprykerTest/Zed/MerchantSitemapConnector