integration_documentation:plentymarkets_ceres_plugin:ceres_smart_did-you-mean

integration_documentation:plentymarkets_ceres_plugin:ceres_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
integration_documentation:plentymarkets_ceres_plugin:ceres_smart_did-you-mean [2021/02/16 08:50]
dominik removed
— (current)
Line 1: Line 1:
-===== Using Smart Did-You-Mean with Plentymarkets Ceres ===== 
  
-<​note>​ 
-[[https://​marketplace.plentymarkets.com/​plugins/​channels/​online-shops/​findologic_6390|You can download our plugin for plentymarkets Ceres in the plentyMarketplace]]</​note>​ 
- 
-==== Container link ==== 
- 
-  * Open the menu ''​Plugins » Plugin overview''​. 
-  * 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}} 
- 
-==== Template adaption ==== 
- 
-  * 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//​. 
- 
-<code php>​LayoutContainer.show("​Findologic::​CategoryItem.SmartDidYouMean"​)</​code>​ 
- 
-  * 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. 
- 
-{{:​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>​ 
- 
- 
-**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>​