Managing Recommendations
The plugin adds a default set of recommendation elements to the shop, that can be moved/removed as you see fit.
Recommendations are by default added to the following pages:
The home page
The category pages
The product pages
The search result page
The shopping cart page
Note: All recommendation elements are by default appended to the Shopware frontend_index_content
block in the theme.
Moving recommendations
In order to move one of the default recommendation blocks, you need to override the template file that outputs them. Shopware supports overriding templates by copying the original file and placing it in your theme folder, keeping the complete file structure the identical to what it is in the plugin.
Example:
Moving one of the recommendation elements on the category pages to the top of the page, while keeping the other recommendation at the bottom.
The file you need to override is frontend/plugins/nosto_tagging/listing/index.tpl
. Copy this file and place it in SHOPWARE/themes/Frontend/THEME_NAME/frontend/plugins/nosto_tagging/listing/index.php
. Then edit the file to move the recommendations as below.
You need to double check that you have both the frontend_listing_index_listing
and frontend_index_content
blocks in your theme, and that they are positioned accordingly. If they are not, or you wish to add the recommendations to an other block, you can do so freely.
Note: The inclusion of the category tagging, i.e. {include file="frontend/plugins/nosto_tagging/listing/category_tagging.tpl"}
is required. This file needs to be included, but it does not matter where on the page it is placed.
Removing recommendations
If you wish to remove one of the default recommendation elements you can easily do so by going to the plugin configuration page in the backend, and for the correct account toggle of the visibility of the recommendation. These settings are found on the Recommendations page of the account management.
Recommendations that are not visible will not be populated with content by Nosto. The recommendation element placeholder will still be added to the site, but it will remain empty and hidden to the users.
Adding new recommendations
You can add your own customised recommendation elements to your shop by adding the recommendation placeholder elements in your theme. The placeholders are simple html div elements, e.g. <div class="nosto_element" id="my-custom-recommendation-id"></div>
.
Note that the element IDs need to match defined element's in Nosto. These you need to create and configure for your Nosto account by logging in to the Nosto backend.
Last updated