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:08]
tobi
integration_documentation:plugin:en:api:plentymarkets:promotions [2023/04/14 14:19] (current)
tobi
Line 4: Line 4:
 # 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 14: 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 25: Line 26:
  
 <​markdown>​ <​markdown>​
-</​markdown>​ + 
-{{:​integration_documentation:​plentymarkets_ceres_en:screenshot_2019-09-06_at_14.58.12.png}} +![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) 
-<​markdown>​+
 --- ---
  
 * 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":​
  
-</​markdown>​ +    ![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)
-{{:​integration_documentation:​plentymarkets_ceres_en:screenshot_2019-09-06_at_15.00.46.png}} +
-<​markdown>​ +
-**Code2Copy:**+
  
-```php+    **Code2Copy:​** 
 + 
 +    ​```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>​