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 [2019/09/11 12:40]
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 ''​CMS ยป container links''​. 
-  * Connect the container with the data provider, as shown in the following screenshot: 
- 
-{{:​integration_documentation:​plentymarkets_ceres_en:​screenshot_2019-09-06_at_14.54.41.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>​