integration_documentation:plugin:en:api:plentymarkets:smart_did_you_mean

integration_documentation:plugin:en:api:plentymarkets:smart_did_you_mean

This is an old revision of the document!


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 ist eine Erweiterung, welche es Ihnen ermöglicht eine Meinten Sie ... ? Funktion, weitere Informationen finden sie hier.

https://docs.findologic.com/lib/exe/fetch.php?media=integration_documentation:plentymarkets_ceres:plenty_sdym.png

  • 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 %}