@@ -813,4 +813,14 @@ abstract class ProductFamily extends AbstractDocumentEntity implements ProductPr | |||
return false; | |||
} | |||
} | |||
public function hasOneProductOnline() | |||
{ | |||
if( ($this->getActiveProducts() && count($this->getProductsOnline()) > 0) | |||
|| (!$this->getActiveProducts() && $this->getOriginProduct())){ | |||
return true ; | |||
} | |||
return false ; | |||
} | |||
} |