integration_documentation:plentymarkets_ceres_en:ceres_promotions_en

integration_documentation:plentymarkets_ceres_en:ceres_promotions_en

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
integration_documentation:plentymarkets_ceres_en:ceres_promotions_en [2020/02/14 12:26]
florian
— (current)
Line 1: Line 1:
-===== Setting up the necessary container connections for the use of promotions ===== 
  
-<note important>​ 
-[[https://​marketplace.plentymarkets.com/​plugins/​channels/​online-shops/​findologic_6390|You can download our plugin for plentymarkets Ceres in the plentyMarketplace]]</​note>​ 
- 
-**If you have set up promotions in the [[https://​secure.findologic.com/​login.symfony/​web/​app.php/​promotion/​new|FINDOLOGIC customer account]], you have to follow these instructions in order to get the promotion banners active in your shop:** 
- 
-  * 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''​. 
- 
-{{:​integration_documentation:​plentymarkets_ceres_en:​container_en.png}} 
- 
----- 
- 
-  * Add the following row to the file //​resources/​views/​Category/​Item/​CategoryItem.twig//: ​ 
- 
-<code php> 
-LayoutContainer.show("​Findologic::​CategoryItem.Promotion"​) 
-</​code>​ 
- 
-<​note>​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.</​note>​ 
- 
-{{:​integration_documentation:​plentymarkets_ceres_en:​screenshot_2019-09-06_at_14.58.12.png}} 
- 
----- 
- 
-  * Add an eventlistener in the serviceprovider of the plugin to "​IO.tpl.search"​ and "​IO.tpl.category.item",​ which is loading "​CategoryItem.twig":​ 
- 
-{{:​integration_documentation:​plentymarkets_ceres_en:​screenshot_2019-09-06_at_15.00.46.png}} 
- 
-**Code2Copy:​** 
- 
-<code php> 
-    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);​ 
-    } 
-</​code>​