isSimilarShownActivated example

return $similarShown;
    }

    /** * Event listener function of the Shopware_Plugins_LastArticles_ResetLastArticles * event. This event is fired after the Shopware_Plugins_LastArticles plugin resets * the s_emarketing_lastarticles data for a validation time. * This listener is used to update the similar shown article data at the same time. */
    public function afterSimilarShownArticlesReset(Enlight_Event_EventArgs $arguments)
    {
        if (!$this->isSimilarShownActivated()) {
            return $arguments->getReturn();
        }

        $strategy = $this->Application()->Config()->get(
            'similarRefreshStrategy',
            self::AGGREGATE_STRATEGY_LIVE
        );

        if ($strategy !== self::AGGREGATE_STRATEGY_LIVE) {
            return $arguments->getReturn();
        }

        
Home | Imprint | This part of the site doesn't use cookies.