Skip to content

valantic-CEC-Deutschland-GmbH/merchant-sitemap-connector

Repository files navigation

Merchant sitemap connector

Minimum PHP Version

Description This module is used alongside valantic-spryker/sitemap Sitemap module to extend the sitemap with merchant URLs from recently created Spryker marketplace.

Usage

  1. composer require valantic-spryker/sitemap-merchant-connector
  2. Since this is under ValanticSpryker namespace, make sure that in config_default:
    1. $config[KernelConstants::CORE_NAMESPACES] has the namespace
    2. $config[KernelConstants::PROJECT_NAMESPACES] has the namespace
  3. Add MerchantSitemapCreatorPlugin to \ValanticSpryker\Zed\Sitemap\SitemapDependencyProvider::getSitemapCreatorPluginStack
  4. Add \ValanticSpryker\Shared\SitemapMerchantConnector\MerchantSitemapConnectorConstants::RESOURCE_TYPE to \ValanticSpryker\Yves\Sitemap\SitemapDependencyProvider::getAvailableSitemapRouteResources
  5. Now the Sitemap will include published URLs of merchants.

Testing

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages