|
|
@@ -327,7 +327,7 @@ abstract class ProductFamily extends AbstractDocumentEntity implements ProductPr |
|
|
|
$productsOnlineArray = new ArrayCollection() ; |
|
|
|
|
|
|
|
foreach($products as $product) { |
|
|
|
if($product->getStatus() == 1) { |
|
|
|
if($product->getStatus() == 1 && $product->getOriginProduct() !=true) { |
|
|
|
$productsOnlineArray[] = $product ; |
|
|
|
} |
|
|
|
} |
|
|
@@ -797,7 +797,7 @@ abstract class ProductFamily extends AbstractDocumentEntity implements ProductPr |
|
|
|
$products = $this->getProducts() ; |
|
|
|
|
|
|
|
foreach($products as $product) { |
|
|
|
if($product->getStatus() == 1 && $product->getOriginProduct()) { |
|
|
|
if($product->getOriginProduct()) { |
|
|
|
return $product ; |
|
|
|
} |
|
|
|
} |