protected function setDataReviewsIndexProduct()
    {
        if ($this->config('review_enabled', 1) && !empty($this->data_product['total_reviews'])) {

            $pager_options = array(
                'key' => 'rep',
                'total' => $this->data_product['total_reviews'],
                'limit' => (int) $this->config('review_limit', 5)
            );

            $pager = $this->getPager($pager_options);

            $data = array(
                'product' => $this->data_product,
                'pager' => $pager['rendered'],
                'reviews' => $this->getReviewsProduct($pager['limit'])
            );

            $this->setData('reviews', $this->render('review/list', $data, true));
        }
    }
protected function setDataReviewsIndexProduct()
    {
        if ($this->config('review_enabled', 1) && !empty($this->data_product['total_reviews'])) {

            $pager_options = array(
                'key' => 'rep',
                'total' => $this->data_product['total_reviews'],
                'limit' => (int) $this->config('review_limit', 5)
            );

            $pager = $this->getPager($pager_options);

            $data = array(
                'product' => $this->data_product,
                'pager' => $pager['rendered'],
                'reviews' => $this->getReviewsProduct($pager['limit'])
            );

            $this->setData('reviews', $this->render('review/list', $data, true));
        }
    }
protected function setDataReviewsIndexProduct ( ) { if ( $ this -> config ( 'review_enabled' , 1 ) && ! empty ( $ this -> data_product [ 'total_reviews' ] ) ) { $ pager_options = array ( 'key' => 'rep' , 'total' => $ this -> data_product [ 'total_reviews' ] , 'limit' => ( int ) $ this -> config ( 'review_limit' , 5 ) ) ; $ pager = $ this -> getPager ( $ pager_options ) ; $ data = array ( 'product' => $ this -> data_product , 'pager' => $ pager [ 'rendered' ] , 'reviews' => $ this -> getReviewsProduct ( $ pager [ 'limit' ] ) ) ; $ this -> setData ( 'reviews' , $ this -> render ( 'review/list' , $ data , true ) ) ; } }
Sets the product reviews
Sets the product reviews