Browse Source

Implémentation OrginProduct

feature/export_comptable
Fab 4 years ago
parent
commit
757ac4ab8d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ShopBundle/Model/ProductFamily.php

+ 2
- 2
ShopBundle/Model/ProductFamily.php View File

$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 ;
} }
} }

Loading…
Cancel
Save