/** * Returns the product condition. If none is defined at the product we * try to get the standard product condition as defined in the * SilvercartConfig. * * @return string * * @author Sascha Koehler <*****@*****.**> * @since 10.08.2011 */ public function getCondition() { $condition = ''; if ($this->SilvercartProductConditionID > 0) { $condition = $this->SilvercartProductCondition()->Title; } else { if (SilvercartConfig::getStandardProductCondition()) { $condition = SilvercartConfig::getStandardProductCondition()->Title; } } return $condition; }