protected function prepareProductsCompare(array &$products)
    {
        foreach ($products as $product_id => &$product) {
            $product['field'] = $this->product_field->getList($product_id);
            $this->setItemProductFields($product, $this->image, $this->product_class);
        }
    }
protected function prepareProductsCompare(array &$products)
    {
        foreach ($products as $product_id => &$product) {
            $product['field'] = $this->product_field->getList($product_id);
            $this->setItemProductFields($product, $this->image, $this->product_class);
        }
    }
protected function prepareProductsCompare ( array & $ products ) { foreach ( $ products as $ product_id => & $ product ) { $ product [ 'field' ] = $ this -> product_field -> getList ( $ product_id ) ; $ this -> setItemProductFields ( $ product , $ this -> image , $ this -> product_class ) ; } }
Prepare an array of products to be compared
@param array $products
Prepare an array of products to be compared