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 Next revision Both sides next revision | ||
integration_documentation:plugins:shopware_smart_did_you_mean [2019/04/30 16:36] florian [General] |
integration_documentation:plugins:shopware_smart_did_you_mean [2019/04/30 16:45] florian [Shopware Unified - Smart Did You Mean (SDYM)] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Shopware Unified - Smart Did You Mean (SDYM) ====== | + | ====== Shopware Unified - Smart Did You Mean ====== |
===== General ===== | ===== General ===== | ||
Line 11: | Line 11: | ||
===== SDYM-Template ===== | ===== SDYM-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 |