Helper/Recommended.php
public function getDisplayType()
    {
        $mode = $this->context->getRequest()->getActionName();

        $type = '';

        switch ($mode) {
            case 'related':
                $type = $this->getRelatedProductsType();
                break;
            case 'upsell':
                $type = $this->getUpsellProductsType();
                break;
            case 'crosssell':
                $type = $this->getCrosssellProductsType();
                break;
            case 'bestsellers':
                $type = $this->getBestSellerProductsType();
                break;
            case 'mostviewed':
                $type = $this->getMostViewedProductsType();
                break;
            case 'recentlyviewed':
                $type = $this->getRecentlyviewedProductsType();
                break;
            case 'push':
                $type = $this->getProductpushProductsType();
        }

        return $type;
    }
public function getDisplayType()
    {
        $mode = $this->context->getRequest()->getActionName();

        $type = '';

        switch ($mode) {
            case 'related':
                $type = $this->getRelatedProductsType();
                break;
            case 'upsell':
                $type = $this->getUpsellProductsType();
                break;
            case 'crosssell':
                $type = $this->getCrosssellProductsType();
                break;
            case 'bestsellers':
                $type = $this->getBestSellerProductsType();
                break;
            case 'mostviewed':
                $type = $this->getMostViewedProductsType();
                break;
            case 'recentlyviewed':
                $type = $this->getRecentlyviewedProductsType();
                break;
            case 'push':
                $type = $this->getProductpushProductsType();
        }

        return $type;
    }
public function getDisplayType ( ) { $ mode = $ this -> context -> getRequest ( ) -> getActionName ( ) ; $ type = '' ; switch ( $ mode ) { case 'related' : $ type = $ this -> getRelatedProductsType ( ) ; break ; case 'upsell' : $ type = $ this -> getUpsellProductsType ( ) ; break ; case 'crosssell' : $ type = $ this -> getCrosssellProductsType ( ) ; break ; case 'bestsellers' : $ type = $ this -> getBestSellerProductsType ( ) ; break ; case 'mostviewed' : $ type = $ this -> getMostViewedProductsType ( ) ; break ; case 'recentlyviewed' : $ type = $ this -> getRecentlyviewedProductsType ( ) ; break ; case 'push' : $ type = $ this -> getProductpushProductsType ( ) ; } return $ type ; }
Dispay type.

@return string grid:list
Dispay type .