protected function getRelatedProduct()
    {
        $options = array(
            'status' => 1,
            'store_id' => $this->store_id,
            'product_id' => $this->data_product['product_id'],
            'limit' => array(0, $this->config('related_limit', 12))
        );

        $product_ids = (array) $this->product->getRelated($options);

        $products = array();

        if (!empty($product_ids)) {
            $products = (array) $this->product->getList(array('product_id' => $product_ids));
        }

        $this->prepareEntityItems($products, array('entity' => 'product'));
        return $products;
    }
protected function getRelatedProduct()
    {
        $options = array(
            'status' => 1,
            'store_id' => $this->store_id,
            'product_id' => $this->data_product['product_id'],
            'limit' => array(0, $this->config('related_limit', 12))
        );

        $product_ids = (array) $this->product->getRelated($options);

        $products = array();

        if (!empty($product_ids)) {
            $products = (array) $this->product->getList(array('product_id' => $product_ids));
        }

        $this->prepareEntityItems($products, array('entity' => 'product'));
        return $products;
    }
protected function getRelatedProduct ( ) { $ options = array ( 'status' => 1 , 'store_id' => $ this -> store_id , 'product_id' => $ this -> data_product [ 'product_id' ] , 'limit' => array ( 0 , $ this -> config ( 'related_limit' , 12 ) ) ) ; $ product_ids = ( array ) $ this -> product -> getRelated ( $ options ) ; $ products = array ( ) ; if ( ! empty ( $ product_ids ) ) { $ products = ( array ) $ this -> product -> getList ( array ( 'product_id' => $ product_ids ) ) ; } $ this -> prepareEntityItems ( $ products , array ( 'entity' => 'product' ) ) ; return $ products ; }
Returns an array of related products
@return array
Returns an array of related products