Skip to content

SEO - Pretty Filters - Developer Notes

This document contains notes for developers.

SEO Pretty Filters - Main Module

Routers

Area Router Role
Frontend qoliber\SeoPrettyFilters\Controller\Router Resolving SEO Pretty Filters to category and attribute values

Plugins

Area Type Plugin(s) Role
Admin Magento\Catalog\Block\Adminhtml\Product\Attribute\Edit\Tabs beforeToHtml Adding new tab for Attribute SEO Settings
Frontend Magento\Catalog\Model\Layer\Filter\Item aroundGetUrl Change the way URLs are generated for Layered Navigation
aroundGetRemoveUrl Change the way remove URLs are generated for Layered Navigation
Frontend Magento\Swatches\Block\LayeredNavigation\RenderLayered aroundBuildUrl Change the way URLs are generated for Layered Navigation
Frontend Magento\LayeredNavigation\Block\Navigation\State aroundGetClearUrl Change the URL used to clear navigation filters
Frontend Magento\Catalog\Block\Product\ProductList\Toolbar aroundGetPagerUrl Change the way URLs are generated for the Toolbar Block

Preferences

Area For Role
Admin Magento\Eav\Block\Adminhtml\Attribute\Edit\Options\Options Changing the template and adding support for the SEO Value field

Events

Area Event Role
Admin catalog_entity_attribute_save_after Saving custom SEO Value field after the attribute is saved, formatting SEO value using TranslitUrl object

Database Changes

Table Field Role
eav_attribute_option_value seo_path Additional field for custom attribute values SEO paths

SEO Pretty Filters - Elastic Suite Add-on

Plugins

Area Type Plugin(s) Role
global qoliber\SeoPrettyFilters\Api\Service\AttributeFetcherInterface aroundTransformArrayForFilters Change to use attribute values and SEO values (paths) instead of IDs
global qoliber\SeoPrettyFilters\Converter\Select aroundGetAttributeValueSeoParam Change to use attribute values and SEO values (paths) instead of IDs
global qoliber\SeoPrettyFilters\Resolver\Attribute\ShortAttributeResolver afterResolveAttributeValues Adding support for multiple values after the , character
global qoliber\SeoPrettyFilters\Resolver\Attribute\ComplexAttributeResolver aroundResolveAttributeValues Adding support for multiple values after the , character
global qoliber\SeoPrettyFilters\Service\PatternProcessors\ComplexPatternProcessor aroundGenerateFilterItemUrl Change the way filter item URLs are generated for Complex mode
aroundGenerateRemoveItemUrl Change the way filter item remove URLs are generated for Complex mode
global qoliber\SeoPrettyFilters\Service\PatternProcessors\ShortPatternProcessor aroundGenerateFilterItemUrl Change the way filter item URLs are generated for Short mode
aroundGenerateRemoveItemUrl Change the way filter item remove URLs are generated for Short mode