/**
* Registers all required events for the similar shown articles function.
*/
protected function subscribeSimilarShownEvents() { $this->
subscribeEvent('Enlight_Controller_Dispatcher_ControllerPath_Backend_SimilarShown', 'getSimilarShownBackendController'
);
$this->
subscribeEvent('Enlight_Bootstrap_InitResource_SimilarShown', 'initSimilarShownResource'
);
$this->
subscribeEvent('Shopware_Plugins_LastArticles_ResetLastArticles', 'afterSimilarShownArticlesReset'
);
$this->
subscribeEvent('Shopware_Modules_Articles_Before_SetLastArticle', 'beforeSetLastArticle'
);
$this->
createCronJob('Similar shown article refresh', 'RefreshSimilarShown', 86400, true
);
$this->
subscribeEvent('Shopware_CronJob_RefreshSimilarShown', 'refreshSimilarShown'
);
} /**
* Registers all required events for the also bought articles function.
*/
protected function subscribeAlsoBoughtEvents() { $this->
subscribeEvent('Shopware_Modules_Order_SaveOrder_ProcessDetails', 'addNewAlsoBought'
);
$this->
subscribeEvent('Enlight_Controller_Dispatcher_ControllerPath_Backend_AlsoBought', 'getAlsoBoughtBackendController'
);
$this->
subscribeEvent('Enlight_Bootstrap_InitResource_AlsoBought', 'initAlsoBoughtResource'
);
}