/fond-of-spryker-category-page-search-expander

spryker category-page-search data expander

Primary LanguagePHPMIT LicenseMIT

Extend Spryker Category-Page-Search Module

Build Status PHP from Travis config license

Extend Spryker Category-Page-Search Module, inject plugins to extend PageMap.

Installation

composer require fond-of-spryker/category-page-search-expander

After that register the new CategoryNodeDataPageMapBuilder into your SearchDependencyProvider

protected function getSearchPageMapPlugins()
{
    return [
        // ...
        new CategoryNodeDataPageMapBuilder(),
        // ...
    ];
}

There are already to examples to show how it works, take a look into:

src/FondOfSpryker/Zed/CategoryPageSearchExpander/Communication/Plugin/PageMapExpander/CategoryIdPageMapExpanderPlugin
src/FondOfSpryker/Zed/CategoryPageSearchExpander/Communication/Plugin/PageMapExpander/CategoryKeyPageMapExpanderPlugin
src/FondOfSpryker/Zed/CategoryPageSearchExpander/Communication/CategoryPageSearchExpander::getCategoryPageMapExpanderPlugins