protected function getResultDelete(array $cart)
    {
        $options = array(
            'user_id' => $cart['user_id'],
            'store_id' => $cart['store_id'],
        );

        $content = $this->cart->getContent($options);

        return array(
            'redirect' => '',
            'severity' => 'success',
            'quantity' => empty($content['quantity']) ? 0 : $content['quantity'],
            'message' => $this->translation->text('Product has been deleted from cart')
        );
    }
protected function getResultDelete(array $cart)
    {
        $options = array(
            'user_id' => $cart['user_id'],
            'store_id' => $cart['store_id'],
        );

        $content = $this->cart->getContent($options);

        return array(
            'redirect' => '',
            'severity' => 'success',
            'quantity' => empty($content['quantity']) ? 0 : $content['quantity'],
            'message' => $this->translation->text('Product has been deleted from cart')
        );
    }
protected function getResultDelete ( array $ cart ) { $ options = array ( 'user_id' => $ cart [ 'user_id' ] , 'store_id' => $ cart [ 'store_id' ] , ) ; $ content = $ this -> cart -> getContent ( $ options ) ; return array ( 'redirect' => '' , 'severity' => 'success' , 'quantity' => empty ( $ content [ 'quantity' ] ) ? 0 : $ content [ 'quantity' ] , 'message' => $ this -> translation -> text ( 'Product has been deleted from cart' ) ) ; }
Returns an array of resulting data after a product has been deleted from a cart
@param array $cart
@return array
Returns an array of resulting data after a product has been deleted from a cart