|
|
|
|
|
|
|
|
$productsOnlineArray = new ArrayCollection() ; |
|
|
$productsOnlineArray = new ArrayCollection() ; |
|
|
|
|
|
|
|
|
foreach($products as $product) { |
|
|
foreach($products as $product) { |
|
|
if($product->getStatus() == 1) { |
|
|
|
|
|
|
|
|
if($product->getStatus() == 1 && $product->getOriginProduct() !=true) { |
|
|
$productsOnlineArray[] = $product ; |
|
|
$productsOnlineArray[] = $product ; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
$products = $this->getProducts() ; |
|
|
$products = $this->getProducts() ; |
|
|
|
|
|
|
|
|
foreach($products as $product) { |
|
|
foreach($products as $product) { |
|
|
if($product->getStatus() == 1 && $product->getOriginProduct()) { |
|
|
|
|
|
|
|
|
if($product->getOriginProduct()) { |
|
|
return $product ; |
|
|
return $product ; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |