If you have configured Promotions within the FINDOLOGIC Account, the promotions can be displayed in the shop with this steps:
Set up container links as described here: Set container links
Add the following row to the file resources/views/Category/Item/CategoryItem.twig:
{{ LayoutContainer.show("Findologic::CategoryItem.Promotion") }}
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); }