integration_documentation:plugin:en:api:plentymarkets:smart_did_you_mean

integration_documentation:plugin:en:api:plentymarkets:smart_did_you_mean

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
integration_documentation:plugin:en:api:plentymarkets:smart_did_you_mean [2021/04/15 14:08]
daniel
integration_documentation:plugin:en:api:plentymarkets:smart_did_you_mean [2023/04/14 14:18] (current)
tobi
Line 1: Line 1:
 <​markdown>​ <​markdown>​
 ![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)
-</​markdown>​ 
  
-===== Using Smart Did-You-Mean ​with Plentymarkets Ceres =====+## Smart Did-You-Mean
  
-==== Container link ====+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-).
  
-  * Open the menu ''​Plugins » Plugin overview''​. +![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)
-  * 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}}+### 1Container link
  
-==== Template adaption ====+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''​.  +### 2Template adaption
-  * 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>+* 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*.
  
-  * The Smart Did-You-Mean template takes care about the title of the search result page, therefore remove the Plentymarkets default titleAlternatively this code part can also be commented out as shown in the screenshot.+    ```php 
 +    {{ LayoutContainer.show("​Findologic::​CategoryItem.SmartDidYouMean"​) }} 
 +    ```
  
-{{:​integration_documentation:​plentymarkets_ceres_en:​categoryitem_template_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.
  
-<​note>​We recommend to add the file //resources/views/Category/Item/CategoryItem.twig// to your own theme, if you have oneIf you add the row to the Ceres plugin ​itself, it will disappear after the next update.</​note>​+![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)
  
 +</​markdown>​
  
-**Code2copy:​** +<note>We recommend to add the file //​resources/​views/​Category/​Item/​CategoryItem.twig//​ to your own theme, ​if you have oneIf you add the row to the Ceres plugin itselfit will disappear after the next update.</note>
- +
-<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>+