getPromotions example


    public function viewedAction()
    {
        $productId = (int) $this->Request()->getParam('articleId');
        $maxPages = (int) $this->config->get('similarViewedMaxPages', 10);
        $perPage = (int) $this->config->get('similarViewedPerPage', 4);

        $this->marketingModule->sBlacklist[] = $productId;
        $products = $this->marketingModule->sGetSimilaryShownArticles($productId$maxPages * $perPage);

        $numbers = array_column($products, 'number');
        $result = $this->getPromotions($numbers);

        $this->View()->assign('maxPages', $maxPages);
        $this->View()->assign('perPage', $perPage);
        $this->View()->assign('viewedArticles', $result);
    }

    /** * Show also bought articles */
    public function boughtAction()
    {
        
Home | Imprint | This part of the site doesn't use cookies.