@@ -791,4 +791,15 @@ abstract class ProductFamily extends AbstractDocumentEntity implements ProductPr | |||
return $arrayProductsGroupByTitle; | |||
} | |||
public function getOriginProduct() | |||
{ | |||
$products = $this->getProducts() ; | |||
foreach($products as $product) { | |||
if($product->getStatus() == 1 && $product->getOriginProduct()) { | |||
return $product ; | |||
} | |||
} | |||
} | |||
} |