public function getProducts($conditions = array(), $options = array())
    {
        $conditions += array(
            'status' => 1,
            'store_id' => $this->store_id
        );

        if (isset($conditions['product_id']) && empty($conditions['product_id'])) {
            return array();
        }

        $options += array('entity' => 'product');
        $products = (array) $this->product->getList($conditions);
        $this->prepareEntityItems($products, $options);
        return $products;
    }
public function getProducts($conditions = array(), $options = array())
    {
        $conditions += array(
            'status' => 1,
            'store_id' => $this->store_id
        );

        if (isset($conditions['product_id']) && empty($conditions['product_id'])) {
            return array();
        }

        $options += array('entity' => 'product');
        $products = (array) $this->product->getList($conditions);
        $this->prepareEntityItems($products, $options);
        return $products;
    }
public function getProducts ( $ conditions = array ( ) , $ options = array ( ) ) { $ conditions += array ( 'status' => 1 , 'store_id' => $ this -> store_id ) ; if ( isset ( $ conditions [ 'product_id' ] ) && empty ( $ conditions [ 'product_id' ] ) ) { return array ( ) ; } $ options += array ( 'entity' => 'product' ) ; $ products = ( array ) $ this -> product -> getList ( $ conditions ) ; $ this -> prepareEntityItems ( $ products , $ options ) ; return $ products ; }
Loads products from an array of product IDs
@param array $conditions
@param array $options
@return array
Loads products from an array of product IDs