integration_documentation:plugin:en:api:plentymarkets: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:plugin:en:api:plentymarkets:smart_did_you_mean [2021/09/20 12:45] daniel |
integration_documentation:plugin:en:api:plentymarkets:smart_did_you_mean [2023/04/14 14:18] (current) tobi |
||
---|---|---|---|
Line 2: | Line 2: | ||
![https://docs.findologic.com/lib/exe/fetch.php?media=integration_documentation:plugin:en:api:plentymarkets:plenty_logo.png](https://docs.findologic.com/lib/exe/fetch.php?media=integration_documentation:plugin:en:api:plentymarkets:plenty_logo.png) | ![https://docs.findologic.com/lib/exe/fetch.php?media=integration_documentation:plugin:en:api:plentymarkets:plenty_logo.png](https://docs.findologic.com/lib/exe/fetch.php?media=integration_documentation:plugin:en:api:plentymarkets:plenty_logo.png) | ||
- | # Smart Did-You-Mean | + | ## Smart Did-You-Mean |
- | Smart Did-You-Mean ist eine Erweiterung, welche es Ihnen ermöglicht eine **Meinten Sie ... ?** Funktion, weitere Informationen finden sie [hier](https://support.findologic.com/hc/de/articles/360000628174-Wie-verbessert-Smart-Did-You-Mean-die-Shopping-Experience-f%C3%BCr-meine-Kunden-). | + | Smart Did-You-Mean is an extension, where you can implement a **Did you mean ... ?** functionality. More information [here](https://support.findologic.com/hc/en/articles/360000628174-Wie-verbessert-Smart-Did-You-Mean-die-Shopping-Experience-f%C3%BCr-meine-Kunden-). |
- | ![https://docs.findologic.com/lib/exe/fetch.php?media=integration_documentation:plentymarkets_ceres:plenty_sdym.png](https://docs.findologic.com/lib/exe/fetch.php?media=integration_documentation:plentymarkets_ceres:plenty_sdym.png) | + | ![https://docs.findologic.com/lib/exe/fetch.php?media=integration_documentation:plugin:en:api:plentymarkets:sdym_example_en.png](https://docs.findologic.com/lib/exe/fetch.php?media=integration_documentation:plugin:en:api:plentymarkets:sdym_example_en.png) |
- | </markdown> | + | ### 1. Container link |
- | ==== 1. Container link ==== | + | Set up container links as described here: [Set container links](https://docs.findologic.com/doku.php?id=integration_documentation:plugin:en:api:plentymarkets:plugin_configuration#set_container_links) |
- | * Open the menu ''Plugins » Plugin overview''. | + | ### 2. Template adaption |
- | * Click on the plugin set where the ''Findologic plugin'' is installed. | + | |
- | * Click on the ''Findologic plugin'' to get to the configuration page. | + | |
- | * Choose ''Default container links'' from the side menu. | + | |
- | * Activate the container named ''Findologic::CategoryItem.SmartDidYouMean''. | + | |
- | {{:integration_documentation:plentymarkets_ceres_en:container_sdym_en.png}} | + | * Open the menu ''Plugins » Plugin overview''. |
+ | * Click on the plugin set where the ''Findologic plugin'' is installed. | ||
+ | * Click on the ''Ceres plugin'' or your own theme to get to the configuration page. | ||
+ | * Add the following line to the file *resources/views/Category/Item/CategoryItem.twig*. | ||
- | ==== 2. Template adaption ==== | + | ```php |
+ | {{ LayoutContainer.show("Findologic::CategoryItem.SmartDidYouMean") }} | ||
+ | ``` | ||
- | * Open the menu ''Plugins » Plugin overview''. | + | * The Smart Did-You-Mean template takes care about the title of the search result page, therefore remove the Plentymarkets default title. Alternatively this code part can also be commented out as shown in the screenshot. |
- | * Click on the plugin set where the ''Findologic plugin'' is installed. | + | |
- | * Click on the ''Ceres plugin'' or your own theme to get to the configuration page. | + | |
- | * Add the following line to the file //resources/views/Category/Item/CategoryItem.twig//. | + | |
- | <code php>LayoutContainer.show("Findologic::CategoryItem.SmartDidYouMean")</code> | + | ![https://docs.findologic.com/lib/exe/fetch.php?media=integration_documentation:plugin:en:api:plentymarkets:template_adaption_sdym_en.png](https://docs.findologic.com/lib/exe/fetch.php?media=integration_documentation:plugin:en:api:plentymarkets:template_adaption_sdym_en.png) |
- | * The Smart Did-You-Mean template takes care about the title of the search result page, therefore remove the Plentymarkets default title. Alternatively this code part can also be commented out as shown in the screenshot. | + | </markdown> |
- | + | ||
- | {{:integration_documentation:plentymarkets_ceres_en:categoryitem_template_en.png}} | + | |
<note>We recommend to add the file //resources/views/Category/Item/CategoryItem.twig// to your own theme, if you have one. If you add the row to the Ceres plugin itself, it will disappear after the next update.</note> | <note>We recommend to add the file //resources/views/Category/Item/CategoryItem.twig// to your own theme, if you have one. If you add the row to the Ceres plugin itself, it will disappear after the next update.</note> | ||
- | |||
- | |||
- | **Code2copy:** | ||
- | |||
- | <code php> | ||
- | {% if isSearch %} | ||
- | {{ LayoutContainer.show("Findologic::CategoryItem.SmartDidYouMean") }} | ||
- | {# | ||
- | <div class="row mt-3"> | ||
- | <div class="col-12"> | ||
- | <h1 class="h2" id="searchPageTitle"> | ||
- | {% if isTag %} | ||
- | {{ trans("Ceres::Template.tagSearchResults", {"searchString": searchString}) }} | ||
- | {% else %} | ||
- | {{ trans("Ceres::Template.itemSearchResults") }} {{ searchString }} | ||
- | {% endif %} | ||
- | </h1> | ||
- | </div> | ||
- | </div> | ||
- | #} | ||
- | {% endif %} | ||
- | </code> |