protected function setDataSummaryIndexProduct()
    {
        $summary = '';

        if (!empty($this->data_product['description'])) {
            $exploded = $this->explodeText($this->data_product['description']);
            $summary = strip_tags($exploded[0]);
        }

        $this->setData('summary', $summary);
    }
protected function setDataSummaryIndexProduct()
    {
        $summary = '';

        if (!empty($this->data_product['description'])) {
            $exploded = $this->explodeText($this->data_product['description']);
            $summary = strip_tags($exploded[0]);
        }

        $this->setData('summary', $summary);
    }
protected function setDataSummaryIndexProduct ( ) { $ summary = '' ; if ( ! empty ( $ this -> data_product [ 'description' ] ) ) { $ exploded = $ this -> explodeText ( $ this -> data_product [ 'description' ] ) ; $ summary = strip_tags ( $ exploded [ 0 ] ) ; } $ this -> setData ( 'summary' , $ summary ) ; }
Sets the description summary on the product page
Sets the description summary on the product page