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
integration_documentation:plugin:en:api:plentymarkets:promotions [2023/01/24 17:39]
tobi
integration_documentation:plugin:en:api:plentymarkets:promotions [2023/04/14 14:19] (current)
tobi
Line 3: Line 3:
  
 # Using promotions with Plentymarkets Ceres # Using promotions with Plentymarkets Ceres
 +
 +If you have configured Promotions within the [FINDOLOGIC Account](https://​account.findologic.io),​ the promotions can be displayed in the shop with this steps:
  
 ## Container link ## Container link
Line 13: Line 15:
 * 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*
  
     ```php     ```php
-    LayoutContainer.show("​Findologic::​CategoryItem.Promotion"​)+    ​{{ LayoutContainer.show("​Findologic::​CategoryItem.Promotion"​) ​}}
     ```     ```
  
Line 33: Line 35:
     ![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)     ![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:​** +    ​```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);​
     }     }
-```+    ​```
 </​markdown>​ </​markdown>​