integration_documentation:plentymarkets_ceres_en:ceres_promotions_en
This is an old revision of the document!
Using promotions with Plentymarkets Ceres
If you have set up promotions in the FINDOLOGIC customer account, you have to follow these instructions in order to get the promotion banners active in your shop:
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.Promotion
.
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 row to the file resources/views/Category/Item/CategoryItem.twig:
LayoutContainer.show("Findologic::CategoryItem.Promotion")
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.
- Add an eventlistener in the serviceprovider of the plugin to “IO.tpl.search” and “IO.tpl.category.item”, which is loading “CategoryItem.twig”:
Code2Copy:
public function boot(Twig $twig, Dispatcher $dispatcher, ConfigRepository $config) { $dispatcher->listen('IO.tpl.category.item', function (TemplateContainer $container) { $container->setTemplate('MyTheme::Category.Item.CategoryItem'); }, self::PRIORITY); $dispatcher->listen('IO.tpl.search', function (TemplateContainer $container) { $container->setTemplate('MyTheme::Category.Item.CategoryItem'); }, self::PRIORITY); }