public function isProductNew($product)
    {
        $newsFromDate = $product->getNewsFromDate();
        $newsToDate = $product->getNewsToDate();
        if (!$newsFromDate && !$newsToDate) {
            return false;
        }

        return $this->localeDate->isScopeDateInInterval(
            $product->getStore(),
            $newsFromDate,
            $newsToDate
        );
    }
public function isProductNew($product)
    {
        $newsFromDate = $product->getNewsFromDate();
        $newsToDate = $product->getNewsToDate();
        if (!$newsFromDate && !$newsToDate) {
            return false;
        }

        return $this->localeDate->isScopeDateInInterval(
            $product->getStore(),
            $newsFromDate,
            $newsToDate
        );
    }
public function isProductNew ( $ product ) { $ newsFromDate = $ product -> getNewsFromDate ( ) ; $ newsToDate = $ product -> getNewsToDate ( ) ; if ( ! $ newsFromDate && ! $ newsToDate ) { return false ; } return $ this -> localeDate -> isScopeDateInInterval ( $ product -> getStore ( ) , $ newsFromDate , $ newsToDate ) ; }
Return true if product is new, false otherwise
@return bool
Return true if product is new false otherwise