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/02/10 17:00]
daniel
integration_documentation:plugin:en:api:plentymarkets:smart_did_you_mean [2023/04/14 14:18] (current)
tobi
Line 1: Line 1:
-===== Using Smart Did-You-Mean with Plentymarkets Ceres =====+<​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)
  
-==== Container link ====+## Smart Did-You-Mean
  
-  ​Open the menu ''​Plugins » Plugin overview''​. +Smart Did-You-Mean is an extension, where you can implement a **Did you mean ... ?** functionalityMore information [here](https://​support.findologic.com/​hc/​en/​articles/​360000628174-Wie-verbessert-Smart-Did-You-Mean-die-Shopping-Experience-f%C3%BCr-meine-Kunden-).
-  ​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}}+![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)
  
-==== Template adaption ====+### 1. Container link
  
-  * Open the menu ''​Plugins » Plugin overview''​.  +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)
-  * 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>​+### 2Template adaption
  
-  ​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.+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*.
  
-{{:integration_documentation:​plentymarkets_ceres_en:categoryitem_template_en.png}}+    ```php 
 +    ​{{ LayoutContainer.show("​Findologic::CategoryItem.SmartDidYouMean"​) ​}} 
 +    ```
  
-<​note>​We recommend to add the file //​resources/​views/​Category/​Item/​CategoryItem.twig//​ to your own themeif you have oneIf you add the row to the Ceres plugin itself, it will disappear after the next update.</​note>​+* The Smart Did-You-Mean template takes care about the title of the search result pagetherefore remove the Plentymarkets default titleAlternatively this code part can also be commented out as shown in the screenshot.
  
 +![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)
  
-**Code2copy:​**+</​markdown>​
  
-<code php> +<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>
-{% 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>+