integration_documentation:plentymarkets_ceres_en:ceres_sdym_en
This is an old revision of the document!
Using Smart Did-You-Mean with Plentymarkets Ceres
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
.
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.
LayoutContainer.show("Findologic::CategoryItem.SmartDidYouMean")
- 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.
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.
Code2copy:
{% 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 %}