public function getProductLabels($product) 
    {
        $html = '';

        if ($this->isProductOnSale($product)) {
            if ($this->isShowPercentage() && $this->getSalePercentage($product) > 0) {
                $html .= '<span class="sale-label sale-value">'.$this->getSalePercentage($product).'%</span>';
            } else {
                $html .= '<span class="sale-label">'.$this->getSaleLabel().'</span>';
            }
        } elseif ($this->isProductNew($product)) {
            $html .= '<span class="new-label">'.$this->getNewLabel().'</span>';
        }

        return $html;
    }
public function getProductLabels($product) 
    {
        $html = '';

        if ($this->isProductOnSale($product)) {
            if ($this->isShowPercentage() && $this->getSalePercentage($product) > 0) {
                $html .= '<span class="sale-label sale-value">'.$this->getSalePercentage($product).'%</span>';
            } else {
                $html .= '<span class="sale-label">'.$this->getSaleLabel().'</span>';
            }
        } elseif ($this->isProductNew($product)) {
            $html .= '<span class="new-label">'.$this->getNewLabel().'</span>';
        }

        return $html;
    }
public function getProductLabels ( $ product ) { $ html = '' ; if ( $ this -> isProductOnSale ( $ product ) ) { if ( $ this -> isShowPercentage ( ) && $ this -> getSalePercentage ( $ product ) > 0 ) { $ html .= '<span class="sale-label sale-value">' . $ this -> getSalePercentage ( $ product ) . '%</span>' ; } else { $ html .= '<span class="sale-label">' . $ this -> getSaleLabel ( ) . '</span>' ; } } elseif ( $ this -> isProductNew ( $ product ) ) { $ html .= '<span class="new-label">' . $ this -> getNewLabel ( ) . '</span>' ; } return $ html ; }
Return product labels template
@return string
Return product labels template