protected function getResultAdded()
    {
        $quantity = count($this->compare->getList());

        if ($quantity < $this->compare->getLimit()) {
            $quantity++;
        }

        $message = $this->translation->text('Product has been added to <a href="@url">comparison</a>', array(
            '@url' => $this->url->get('compare')));

        return array(
            'redirect' => '',
            'severity' => 'success',
            'quantity' => $quantity,
            'message' => $message
        );
    }
protected function getResultAdded()
    {
        $quantity = count($this->compare->getList());

        if ($quantity < $this->compare->getLimit()) {
            $quantity++;
        }

        $message = $this->translation->text('Product has been added to <a href="@url">comparison</a>', array(
            '@url' => $this->url->get('compare')));

        return array(
            'redirect' => '',
            'severity' => 'success',
            'quantity' => $quantity,
            'message' => $message
        );
    }
protected function getResultAdded ( ) { $ quantity = count ( $ this -> compare -> getList ( ) ) ; if ( $ quantity < $ this -> compare -> getLimit ( ) ) { $ quantity ++ ; } $ message = $ this -> translation -> text ( 'Product has been added to <a href="@url">comparison</a>' , array ( '@url' => $ this -> url -> get ( 'compare' ) ) ) ; return array ( 'redirect' => '' , 'severity' => 'success' , 'quantity' => $ quantity , 'message' => $ message ) ; }
Returns an array of resulting data when a product has been added to comparison
@return array
Returns an array of resulting data when a product has been added to comparison