protected function setProductCompare($string)
    {
        $ids = array_filter(array_map('trim', explode(',', $string)), 'ctype_digit');
        $this->data_products = $this->getProductsCompare($ids);
        $this->prepareProductsCompare($this->data_products);
    }