SilverCart\Model\Product\Product::isNewProduct
Returns if a product is new dependent on its creation date (Created) and the given time difference ($timeDifference).
- Author: Jiri Ripa <jripa@pixeltricks.de>, Sebastian Diel <sdiel@pixeltricks.de>
Signature
public function isNewProduct([string
$timeDifference = NULL] )
Parameters
$timeDifference
— string- '+8 month' OR '-8 day' OR '-1 year'
Returns
- bool