integration_documentation:plentymarkets_ceres:ceres_promotions
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
integration_documentation:plentymarkets_ceres:ceres_promotions [2020/11/18 18:11] daniel |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Einbindung von Promotions ===== | ||
- | |||
- | Wenn Sie im [[https://account.findologic.com/#/app/merchandising/promotions|FINDOLOGIC Account]] Promotions angelegt haben, müssen Sie folgende Schritte befolgen, damit diese in Ihrem Shop ausgespielt werden: | ||
- | |||
- | ==== Container-Verknüpfung ==== | ||
- | |||
- | * Öffnen Sie im Menü ''Plugins » Plugin-Übersicht''. | ||
- | * Klicken Sie auf das Plugin-Set in dem das ''FINDOLOGIC Plugin'' installiert ist. | ||
- | * Klicken Sie auf das ''FINDOLOGIC Plugin'' um auf die Konfigurationsseite zu gelangen. | ||
- | * Wählen Sie im Seitenmenü ''Container-Verknüpfungen''. | ||
- | * Aktivieren Sie die Container mit dem Namen ''Findologic::CategoryItem.Promotion''. | ||
- | |||
- | |||
- | {{:integration_documentation:plentymarkets_ceres:container_de.png}} | ||
- | |||
- | ==== Template Anpassung ==== | ||
- | |||
- | * Öffnen Sie das Menü ''Plugins » Plugin-Übersicht'' | ||
- | * Klicken Sie auf das Plugin-Set in dem das ''FINDOLOGIC Plugin'' installiert ist. | ||
- | * Klicken Sie auf das ''Ceres Plugin'' bzw. auf das eigene Theme um auf die Konfigurationsseite zu gelangen. | ||
- | * Fügen Sie im der Datei //resources/views/Category/Item/CategoryItem.twig// folgende Zeile ein: | ||
- | |||
- | <code php> | ||
- | LayoutContainer.show("Findologic::CategoryItem.Promotion") | ||
- | </code> | ||
- | |||
- | <note>Wir raten dazu das File //resources/views/Category/Item/CategoryItem.twig// in das eigene Theme aufzunehmen (wenn vorhanden). Wenn Sie die Zeile direkt in das Ceres Plugin aufnehmen, wird diese nach dem nächsten Update wieder verschwunden sein</note> | ||
- | |||
- | {{:integration_documentation:categoryitem.png}} | ||
- | |||
- | ---- | ||
- | |||
- | * Setzen Sie im Serviceprovider des Plugins einen Eventlistener auf "IO.tpl.search" und "IO.tpl.category.item", welcher die Datei "CategoryItem.twig" lädt: | ||
- | |||
- | {{:integration_documentation:findologicserviceprovider.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> |