integration_documentation:plugin:en:api:plentymarkets:promotions

integration_documentation:plugin:en:api:plentymarkets:promotions

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
Last revision Both sides next revision
integration_documentation:plugin:en:api:plentymarkets:promotions [2021/02/10 17:01]
daniel
integration_documentation:plugin:en:api:plentymarkets:promotions [2023/04/14 14:18]
tobi [Container link]
Line 1: Line 1:
-===== Using promotions with Plentymarkets Ceres =====+<​markdown>​ 
 +![https://​docs.findologic.com/​lib/​exe/​fetch.php?​media=integration_documentation:​plugin:​en:​api:​plentymarkets:​plenty_logo.png](https://​docs.findologic.com/​lib/​exe/​fetch.php?​media=integration_documentation:​plugin:​en:​api:​plentymarkets:​plenty_logo.png)
  
 +# Using promotions with Plentymarkets Ceres
  
-==== Container link ====+If you have configured Promotions within the [FINDOLOGIC Account](https://​account.findologic.io),​ the promotions can be displayed in the shop with this steps:
  
-  * Open the menu ''​Plugins » Plugin overview''​. +## Container link
-  * 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}}+Set up container links as described here[Set container links](https://​docs.findologic.com/​doku.php?​id=integration_documentation:​plugin:en:​api:​plentymarkets:​plugin_configuration#​set_container_links)
  
-==== Template adaption ​====+## Template adaption
  
-  ​* Open the menu ''​Plugins » Plugin overview''​.  +* Open the menu ''​Plugins » Plugin overview''​.  
-  * Click on the plugin set where the ''​Findologic plugin''​ is installed. +* 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. +* 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//+* Add the following row to the file *resources/​views/​Category/​Item/​CategoryItem.twig*
  
-<​code ​php> +    ```php 
-LayoutContainer.show("​Findologic::​CategoryItem.Promotion"​) +    ​{{ ​LayoutContainer.show("​Findologic::​CategoryItem.Promotion"​) ​}} 
-</code>+    ``` 
 + 
 +</markdown>
  
 <​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>​ <​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}}+<​markdown>​ 
 + 
 +![https://​docs.findologic.com/​lib/​exe/​fetch.php?​media=integration_documentation:​plugin:en:​api:​plentymarkets:​template_adaption_promotion_en.png](https://​docs.findologic.com/​lib/​exe/​fetch.php?​media=integration_documentation:​plugin:​en:​api:​plentymarkets:​template_adaption_promotion_en.png)
  
-----+---
  
-  ​* Add an eventlistener in the serviceprovider of the plugin to "​IO.tpl.search"​ and "​IO.tpl.category.item",​ which is loading "​CategoryItem.twig":​+* 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}}+    ![https://​docs.findologic.com/​lib/​exe/​fetch.php?​media=integration_documentation:​plugin:en:​api:​plentymarkets:​plugin_adaption_promotion_en.png](https://​docs.findologic.com/​lib/​exe/​fetch.php?​media=integration_documentation:​plugin:​en:​api:​plentymarkets:​plugin_adaption_promotion_en.png)
  
-**Code2Copy:​**+    ​**Code2Copy:​**
  
-<​code ​php>+    ```php
     public function boot(Twig $twig, Dispatcher $dispatcher,​ ConfigRepository $config)     public function boot(Twig $twig, Dispatcher $dispatcher,​ ConfigRepository $config)
     {     {
-    $dispatcher->​listen('​IO.tpl.category.item',​ function (TemplateContainer $container) +        ​$dispatcher->​listen('​IO.tpl.category.item',​ function (TemplateContainer $container) 
-     +        
-     $container->​setTemplate('​MyTheme::​Category.Item.CategoryItem'​);​ +            $container->​setTemplate('​MyTheme::​Category.Item.CategoryItem'​);​ 
-     }, self::​PRIORITY);​ +        }, self::​PRIORITY);​ 
-      +    ​  ​   ​ 
-     $dispatcher->​listen('​IO.tpl.search',​ function (TemplateContainer $container) +        $dispatcher->​listen('​IO.tpl.search',​ function (TemplateContainer $container) 
-     +        
-     $container->​setTemplate('​MyTheme::​Category.Item.CategoryItem'​);​ +            $container->​setTemplate('​MyTheme::​Category.Item.CategoryItem'​);​ 
-     }, self::​PRIORITY);​+        }, self::​PRIORITY);​
     }     }
-</code>+    ``` 
 +</markdow 
 +n>