integration_documentation:plugins:shopware_smart_did_you_mean
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
integration_documentation:plugins:shopware_smart_did_you_mean [2019/04/30 13:58] franz [Snippets] |
integration_documentation:plugins:shopware_smart_did_you_mean [2021/02/25 13:52] (current) daniel |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Shopware Unified - Smart Did You Mean (SDYM) ====== | + | ====== Customize Smart Did-You-Mean in Shopware 5 ====== |
===== General ===== | ===== General ===== | ||
- | For Smart Did You Mean (SDYM) to work porperly with the FINDOLOGIC Shopware Unified Plugin. Three conditions have to be met: | + | Three conditions have to be met, to be able to activate Smart Did-You-Mean with the FINDOLOGIC Shopware Unified Plugin. |
- | * FINDOLOGIC Shopware Unified Plugin has to be installed | + | * The FINDOLOGIC Shopware Unified Plugin (Version 7.3.0 or higher) has to be installed. |
- | * SDYM has to be activated in the customer login for the specific service | + | * Smart Did-You-Mean has to be activated for the specific service. |
- | * SDYM-Recomendations have to be provided by the API | + | * Smart Did-You-Mean recommendations have to be provided by the API. |
- | The SDYM output can be customized by themes and text modules in the Shopware backend. | + | The Smart Did-You-Mean output can be customized by themes and text modules in the Shopware backend. |
- | ===== SDYM-Template ===== | + | ===== Smart Did-You-Mean Template ===== |
- | The plugin provides the file FinSearchUnified/Resources/views/frontend/search/fuzzy.tpl | + | The plugin provides the file **FinSearchUnified/Resources/views/frontend/search/fuzzy.tpl**. |
- | The SDYM output **must be tested** before the feature is released, due to the fact, that the default implementation does not fit the design of individual themes | + | The Smart Did-You-Mean output **must be tested** before the feature is released, because the default implementation does not fit the design of individual themes. Create a file of the same name and folder structure in the theme to adapt a template. |
- | To adapted a template, create a file of the same name and folder structure in the theme | + | |
Available variables in the template: | Available variables in the template: | ||
- | * $finSmartDidYouMean => Only available if SDYM suggestions exist. | + | * $finSmartDidYouMean => Only available if Smart Did-You-Mean suggestions exist. |
- | * $finSmartDidYouMean.type => has one of the following values: did-you-mean, improved, corrected, forced. | + | * $finSmartDidYouMean.type => Has one of the following values: did-you-mean, improved, corrected, forced. |
* $finSmartDidYouMean.alternative_query => Contains the alternative search term proposed by FINDOLOGIC. | * $finSmartDidYouMean.alternative_query => Contains the alternative search term proposed by FINDOLOGIC. | ||
- | * $finSmartDidYouMean.original_query => If the type is “did-you-mean” this variable is empty. In any other case, the original search word is included. | + | * $finSmartDidYouMean.original_query => If the type is “did-you-mean”, this variable is empty. In any other case, it is the original query. |
Line 27: | Line 26: | ||
===== Snippets ===== | ===== Snippets ===== | ||
- | The texts of the SDYM suggestions are stored by the plugin in the Shopware backend as snippets and can be adapted there as well. | + | The wordings of the Smart Did-You-Mean suggestions are stored by the plugin in the Shopware backend as snippets and can be adapted there. |
Open Configuration => Snippets | Open Configuration => Snippets | ||
Line 41: | Line 40: | ||
All the building blocks which names begin with "frontend / search / fuzzy" are provided by FINDOLOGIC. | All the building blocks which names begin with "frontend / search / fuzzy" are provided by FINDOLOGIC. | ||
- | Here you are also able to find the template variables mentioned above. | + | You will also find the template variables mentioned above here. |
Line 47: | Line 46: | ||
- | Select Einstellungen -> Caches/Performance -> Caches/performance | + | Select Settings => Caches/Performance => Caches/performance |
{{:integration_documentation:plugins:select_cache.png?600|}} | {{:integration_documentation:plugins:select_cache.png?600|}} | ||
Line 58: | Line 57: | ||
* Shopware configuration | * Shopware configuration | ||
- | * template cache | + | * Template cache |
* Compile themes | * Compile themes | ||
- | If the tempaltes are changed later empty the following section: | + | If the templates are changed, empty the following section: |
* Compile themes | * Compile themes | ||
- | If the text modules are changed later empty the following sections: | + | If the text modules are changed, empty the following sections: |
* Shopware configuration | * Shopware configuration | ||
- | * emplate cache | + | * Template cache |